Comments (5)
It should work under 10.6.6. Can you confirm this issue is only happening on that build?
from forever.
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.
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.
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.
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)
- How to interface with forever on deployments? HOT 1
- TypeError: forever.config.saveSync is not a function HOT 2
- 4.0.1 released on npmjs.com but not tagged/released on github HOT 2
- Do not send to user list
- Windows 10: current version of forever ? HOT 1
- forever/bin/monitor still keep the output log File descriptor in memory although i deleted them HOT 1
- Vulnerable dependencies on [email protected] HOT 3
- Run forever script on Windows, show processing but not forever processes running
- [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (1505) HOT 3
- security fix: pin or replace `colors` dependency HOT 14
- Running the "forever list" on ubuntu showing the following output HOT 3
- stopall gets stuck sometimes
- --plain flag is ignored/does not work in forever 4.0.3 HOT 2
- latest version has vulnarable dependencies HOT 1
- Uptime format
- Issue starting multiple servers in one command
- any guide for next js 13?
- how to find the exit reason of process HOT 1
- AIX 7.3 TL 1 forever errors
- how to save old history log instead of delete.. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from forever.