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 [email protected] No repository field.
package.json [email protected] No repository field.
package.json [email protected] 'repositories' (plural) Not supported
package.json Please pick one as the 'repository' filed
package.json [email protected] No readme data
package.json [email protected] No readme data
package.json [email protected] No readme data
package.json [email protected] No readme data
package.json [email protected] No readme data
engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v.0.10.12","npm":"1.2.32"})
engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v.0.10.12","npm":"1.2.32"})
engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v.0.10.12","npm":"1.2.32"})
engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v.0.10.12","npm":"1.2.32"})
engine [email protected]: 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