Node.js with Forever on ubuntu

dzm picture dzm · Mar 8, 2012 · Viewed 12.4k times · Source

I'm trying to install Forever to use with Node.js. I'm installing it using 'npm install forever -g'. It seems to install fine, but when I run the command 'forever' it's not found.

Maybe I'm not installing it in the right location? Where should it be installed to?

Any help would be great! Thank you!

Answer

griffon vulture picture griffon vulture · Mar 30, 2014

You have to run forever install using sudo:

sudo npm install forever -g