Installing Node and NPM in Ubuntu

Installing Node js in Unix/Linux: Ubuntu contains the latest version of node js in its default repo. To get the version we use apt package manager.

sudo apt update

The apt update command will update your system and we can install nodejs using below command

install node js

After installing node js we need to install nodejs package manager, npm using below command

sudo apt install nodejs
sudo apt install npm

install node js

install node V1 js

We can check the version of node js and npm using the below command.

nodejs -v   
Npm -v

Below screenshot shows node and npm Version

install node V1 js

Subscribe Now