28-Mar-2023
.
Admin
Hello Friends,
To install Node.js and NPM on Ubuntu 18.04, 20.04, or 22.04, follow the steps outlined in this article. NPM is the package manager for the Node.js JavaScript platform. It puts modules in place so that Node.js can find them, and manages dependency conflicts intelligently. It is extremely configurable and supports a wide variety of use cases. Most commonly, it is used to publish, discover, install, and develop Node.js programs.
How to Install Node Js & NPM Ubuntu 18.04/20.04/22.04 In this article, we will implement the Install Node Js & NPM Ubuntu 18.04/20.04/22.04 steps. we will help you to give examples of Node Js & NPM Ubuntu Install example. follow bellow step for Install Node Js & NPM Ubuntu 18.04/20.04/22.04.
Step 1: Install Node js & NPM On Ubuntu
before installing the Node js & NPM on Ubuntu. First update the apt package :
sudo apt-get update
sudo apt-get upgrade
Step 2: Add Node.js PPA
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 -
Step 3: Now Install Node.js and NPM On Ubuntu
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
Step 4: Test Version
After completing the installation process. We need to check the version.
Check the installed Node js version :
nodejs -v
Check the Installed NPM version :
npm -v
#Node.js Express