admin/ February 2, 2017/ Linux/ 0 comments



Install different version of the nodejs

Step1-: Install curl

sudo apt-get install curl

Step 2-: To install Node.js v4.0 use the below commands

curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs

Alternatively, for Node.js v5:

curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs

UPDATE Node.js v6:

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs

UPDATE Node.js v7:

curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs

https://nodejs.org/en/download/package-manager/

Share this Post

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.