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
foreveris used to make it easy to run Services on various platforms. This is helpful because the various Linux distros vary wildly on how they implement Services. However, on a Windows 7 box, configuring Services is easy and well-documented. I would skipforeverand simply use the existing Windows Services stuff.Foreverand install thehelloserver.jsas a service on Windows. Right?node c:\path\to\helloserver.js, but that's the premise. Windows Services will provide you with the basicforeverfeatures like starting when the computer starts, automatic restart on failure, etc. If you need the command-line access, PowerShell will grant you full access to the services stuff.