In Ubuntu 18.04 How to Install Node Js & NPM . In this article , we’ll show you how to install Node Js & NPM on Ubuntu. NPM is a node package manager. NPM is the package manager for the Node JavaScript platform. It puts modules in place so that node can find them, and manages dependency conflicts intelligently. It is extremely configurable to support a wide variety of use cases. Most commonly, it is used to publish, discover, install, and develop node programs.
After install npm and node js on ubuntu, we will run the simple command check the version of installed node js & npm on ubuntu system.
before install the Node js & NPM on Ubuntu. First update the apt package :
sudo apt-get update
sudo apt-get upgrade
PPA (Personal Package Archives) is Python software libraries. Before install node js & npm on ubuntu, first install PPA in our ubuntu system. Using this below commands.
sudo apt-get install python-software-properties
curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
After adding PPAs in our system. we need to run the below command for installing node js & npm on Ubuntu.
For Install Node js on Ubuntu :
sudo apt-get install nodejs
For Install NPM on Ubuntu
sudo apt-get install npm
After complete the installation process. We need to check the version.
Check the installed Node js version :
nodejs -v
Check the Installed NPM version :
npm -v
You have successfully installed Node js & NPM on Ubuntu 18.04. You are now ready to start deploying your applications and use Node js and NPM.
If you have any questions or thoughts to share, use the comment form below to reach us.
#nodejs #npm #ubuntu