node_modules like express and forever is not running in Ubuntu 14.04 LTS

  • Posted May 13, 2014


I have install nodejs and mysql…

Node js and MYSQL is running fine. For node/npm, I have ran: apt-get install nodejs apt-get install npm

But, after installing node-module -g (globally) express and forever. express and forever command is not running.

which express gives: /usr/local/bin/express and /usr/local/bin/forever

Even I have entered in $PATH variable.

Let me know If there is anything I can do to resolve this problem.



Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi Andrew, <br> <br>Bullseye! <br>yes, thats a solution. <br>I did as suggested soft-linking of nodejs to node and it works. <br> <br>- Thanks :) <br> <br>

Hi! <br> <br>Could you expand on what you mean when you say express and forever are not running? Is there any error output? Most likely, you need to link node and nodejs. Run: <br> <br><pre> <br>sudo ln -s /usr/bin/nodejs /usr/local/bin/node <br></pre> <br> <br>This is because things installed via npm want the Node.JS interpreter to be named “node” while the version installed by apt is named “nodejs”