How To Install Node JS And NPM On Hosting Account : 2019 Complete Guide

How To Install Node JS And NPM On Hosting Account : 2019 Complete Guide


shared hosting npm

Installing Node.js application in Cpanel

Here several easy steps to quickly install Node.js (the Node.js package manager). To do this, follow these steps:

1. Log in to your account using SSH (If SSH Access is not enabled for your account contact our support).

2. At the command prompt, type next commands:

wget

You can install latest one, please make sure to download .tar.xz extension package only.

Above will download v8.10.0 version, in case you need different version you can find latest here:

3. **To extract the Node.js files, type the following command:**
“`
tar xvzf node-v8.10.0-linux-x64.tar.gz
“`

4. Now we will rename the folder to node.js name, to do this type the following command:
“`
mv node-v8.10.0-linux-x64 nodejs
“`

5. Now install **node** and **npm** binaries, type the next commands:
“`
mkdir ~/bin
cp nodejs/bin/node ~/bin
cd ~/bin
ln -s ../nodejs/lib/node_modules/npm/bin/npm-cli.js npm
“`

————————————————————————————————–
That is all, Node.js and npm are installed on your account. To verify, type the following commands:
“`
node –version
“`
————————————————————————————————–

Note: **The /bin directory is in your path by default**, which means you can run NODE and NPM from any directory
in your account

————————————————————————————————–

Click here to get your Node JS Hosting:

5 thoughts on “How To Install Node JS And NPM On Hosting Account : 2019 Complete Guide

Leave a Reply

Your email address will not be published. Required fields are marked *