Nir Nir - 1 month ago 4x
Node.js Question

Empty output with forever for nodejs

I have a nodeJS server that I want to run forever.

I found this package

I installed it using this command line

sudo npm install forever -g

But when I test it, there is no output (even not for help).

enter image description here

What it can be?


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