I have a nodeJS server that I want to run forever.
I found this package https://github.com/foreverjs/forever
I installed it using this command line
sudo npm install forever -g
If you installed on Ubuntu through apt package manager you need to create a symbolic link since npm modules try to run via /usr/bin/node
sudo ln -s `which nodejs` /usr/bin/node
or automatically via apt
sudo apt-get install nodejs-legacy