NodeJs Installation on Ubuntu

Install Node JS

To install Node in Ubuntu run following commands

To install node v4


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

To install node v6


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

after successful installation check node version via following command


node -v

Leave a Reply

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