Table of Contents
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 -
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.
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
Enter the Below Command to Check NPM Version.
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 : https://goo.gl/1KPrCt” quote=”Found this Article better ?? Click here to Tweet <3″]
Thanks for your Feeback. It will helps us to improve our Article quality