You may seen lot of posts on installing node, npm and pm2. Here we go in our site, how to install node, npm and pm2 on linux distribution.

Let’s download the node version and extract the files.

cd /opt;wget https://nodejs.org/dist/v6.2.2/node-v6.2.2-linux-x64.tar.gz && tar -xvf node-v6.2.2-linux-x64.tar.gz

Create a symlink to /use/bin directory

ln -sf /opt/node-v6.2.2-linux-x64/bin/node /usr/bin/node

ln -sf /opt/node-v6.2.2-linux-x64/bin/npm /usr/bin/npm

Install pm2 as global.

npm install -g pm2

You are done!!!

Leave a Reply