November 18, 2020 / Eternal Team
First, all the necessary packages should be updated in your Linux repository using the following command.
$sudo apt update
Install nodejs package which contains binaries for npm as well as for Node.js
$sudo apt install nodejs
For checking if Node.js and npm are installed or not, you can just run the below command.
$sudo apt install build-essential
Now if you want to enable add-ons from npm, you will need to install the development tools of your choice.
Among the many methods of installing npm in Linux, here we learned one of the simplest methods.