How to install Node.js and Npm in Ubuntu 18.04 from default repository?
Today I will share with you guys how to install Nod.js and Npm in Ubuntu 18.04. I used the latest Ubuntu version but itβs compatible with previous versions as well. And your machine needs internet access to set up this.
To get latest Node.js and Npm version, u need to use apt and refresh your local package index first.$ sudo apt update
Then, install the Node.$ sudo apt install nodejs
Then, install the Npm.$ sudo apt install npm
Check the Node and Npm version.
$ nodejs -v
$ npm-v
That’s it. I hope this will help. π
Photo: Nodejs icon icon by Icons8