Code Monkey home page Code Monkey logo

Comments (5)

Marak avatar Marak commented on June 9, 2024

It should work under 10.6.6. Can you confirm this issue is only happening on that build?

from forever.

lavmax avatar lavmax commented on June 9, 2024

If you mean Mac OS build I don't have another one, so I can tell nothing about other builds.
If you mean forever build, I've installed it with 'npm install forever'.
This issue happens if I start 'forever start server.js'. Starting in the same directory 'node server.js' normally starts the server.

from forever.

indexzero avatar indexzero commented on June 9, 2024

It looks like a problem in your script, not necessarily with forever. Can you try running forever with a simple example like this:

  var util = require('util');
  var n = 0;
  setTimeout(function () {
    util.puts(++n + ' time this was called');
  }, 200);

Let me know what you find.

from forever.

lavmax avatar lavmax commented on June 9, 2024

Unfortunately your code doesn't work for me. I've tried with the simplest server from nodejs.org example

var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello World\n');
}).listen(8124, "127.0.0.1");
console.log('Server running at http://127.0.0.1:8124/');

It works fine with

node server.js

but if I start

forever start server.js

I have the same problem:

/usr/local/bin/node:1
�����
^
SyntaxError: Unexpected token ILLEGAL
    at Module._compile (node.js:458:37)
    at Module._loadScriptSync (node.js:469:10)
    at Module.loadSync (node.js:338:12)
    at Object.runMain (node.js:522:24)
    at Array.0 (node.js:756:12)
    at EventEmitter._tickCallback (node.js:55:22)
    at node.js:768:9
Forever detected script exited with code: 1
Forever restarting script for 88 time

from forever.

steelThread avatar steelThread commented on June 9, 2024

I've been running into very similar issues (bad chars) on my os x system with other projects that I've installed with npm recently. zappa was causing the same problem for me just yesterday. The way I got around it was to clone the repo and run 'npm install' from the base dir, ie install locally vs the npm package. Hope this helps.

from forever.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.