Search code examples
node.jsnpmnpm-installforever

Empty output with forever for nodejs


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

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

enter image description here

What it can be?


Solution

  • 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