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!
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>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.