Nir Nir -4 years ago 170
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?

Answer Source

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
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download