How to Install NodeJS and NPM on Ubuntu 16.04/16.10/17.04

Install NodeJS and npm on Ubuntu – Node.JS is a Light weight JavaScript framework built on Chrome’s JavaScript runtime to easily build fast, scalable network web applications and to deploy easily.

Install NodeJS and npm on Ubuntu

Install NodeJS and NPM on Ubuntu 16.04/16.10/17.04

Ubuntu is full of PPAs and all. So first we have to be update our package manager to make sure that everything is up-to-date

Updating the Package Manager

Whenever we perform some root task we have to update our package manager aka Respository which can be done via Terminal

To Open up the terminal Go to Dashboard – > Terminal (or) Press Ctrl+Alt+T

And enter the below command then press enter

sudo apt-get update

Adding NodeJS PPAs

First, you need to node.js PPA in our system provides by nodejs official website. We also need to install python-software-properties package if not installed already.

First, We have to add NodeJS PPA in our system which is available globally provied by Offical developers of Node.JS

Installing NodeJS requires python software libraries also.

In the Terminal Paste the Below Command then Press Enter. 

sudo apt-get install python-software-properties

Again Paste the Below command then Press Enter.

curl -sL | sudo -E bash -

Install NodeJS and npm on Ubuntu

Installing NodeJS and NPM

After adding PPA, Now it’s time to Install Node and NPM.

Enter the Below command in Terminal and Press Enter.

sudo apt-get install nodejs

This will install all the dependent packages required to run Node in our system.

Install NodeJS and npm on Ubuntu

Testing NodeJS and NPM

After the Installation completes we have to check whether NodeJS is properly installed or not.

Enter this Command and Press Enter to Check NodeJS Version

node -v

Enter the Below Command to Check NPM Version.

npm -v

Install NodeJS and npm on Ubuntu


That’s All !! You have Successfully installed NodeJS and NPM.

I Hope this method worked well for you. If you have any doubts kindly ask in the Comments Below.

Want to Contribute something to Us ? Tweet this Article in Twitter

[clickToTweet tweet=”Found a Better way for Installing #NodeJS in Ubuntu. Here you go :” quote=”Found this Article better ?? Click here to Tweet <3″]