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
After installing node js we need to install nodejs package manager, npm using below command
sudo apt install nodejs sudo apt install npm
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