Report this

What is the reason for this report?

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

Posted on May 13, 2014

Hi,

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.

Thanks,



This textbox defaults to using Markdown to format your 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! <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”

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>

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.