Search code examples
node.jsforever

using forever module for windows in nodejs


I downloaded forever module from the following link

https://github.com/nodejitsu/forever

I extracted the zip file and placed it in my node_modules folder. and from my command prompt went into the node js path and gave

forever filename.js as instructed.But i received the error as below

C:\Users\290495\Desktop\newnode\Manoj\Node\nodejs>forever testing.js
'forever' is not recognized as an internal or external command,
operable program or batch file.

Don't know where i am goin wrong.Anyhelp will be much appreciated


Solution

  • Forever needs to be installed globally. Install it with the -g flag i.e. npm install forever -g