Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

forever module on node.js doesn't work - warnings

Tags:

node.js

I use windows 7 and nodejs 0.10.12. I installed the latest version of forever module like so

npm install -g forever

and then I typed

forever start helloserver.js

And I get the following

warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
info: Forever processing file: helloserver.js

Now , I type

forever list

just to check and I get

info: No forever processes running

Also note that during the installation of forever I got these warnings

package.json eyes@0.1.8 No repository field.
package.json eventemitter2@0.4.11 No repository field.
package.json eventemitter2@0.4.11 'repositories' (plural) Not supported
package.json Please pick one as the 'repository' filed
package.json aws-sign@0.2.0 No readme data
package.json cookie-jar@0.2.0 No readme data
package.json oauth-sign@0.2.0 No readme data
package.json tunnel-agent@0.2.0 No readme data
package.json forever-agent@0.2.0 No readme data
engine hawk@0.10.2: wanted: {"node":"0.8.x"} (current: {"node":"v.0.10.12","npm":"1.2.32"})
engine sntp@0.1.4: wanted: {"node":"0.8.x"} (current: {"node":"v.0.10.12","npm":"1.2.32"})
engine hoek@0.7.6: wanted: {"node":"0.8.x"} (current: {"node":"v.0.10.12","npm":"1.2.32"})
engine boom@0.3.8: wanted: {"node":"0.8.x"} (current: {"node":"v.0.10.12","npm":"1.2.32"})
engine cryptiles@0.1.3: wanted: {"node":"0.8.x"} (current: {"node":"v.0.10.12","npm":"1.2.32"})

I guess the forever module is not installed correctly so cannot run the server? I don't get it and I cant think of a solution. Any suggestions/tips? Should I use node 0.8.x? Or there is a workaround?

Thanks

like image 229
slevin Avatar asked Jul 15 '13 17:07

slevin


Video Answer


1 Answers

I think Forever, last version (0.10.0), work on Windows instability but not Linux. You can try following but i recommend you should choose another resolve.

forever start -c node script.js

Note: you can't list and stop in forever with "forever list".

like image 79
SaliproPham Avatar answered Oct 11 '22 03:10

SaliproPham