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 https://deb.nodesource.com/setup_7.x | 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

Conclusion

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

Found this Article better ?? Click here to Tweet <3Click To Tweet

Was this article helpful?

Thanks

Thanks for your Feeback. It will helps us to improve our Article quality




2 Shares
+11
Tweet
Share1
Stumble