November 18, 2020 / Nirav Shah
According to Wikipedia npm (originally short for Node Package Manager) is a package manager for the JavaScript programming language. It is the default package manager for the JavaScript runtime environment Node.js. It consists of a command-line client, also called npm, and an online database of public and paid-for private packages called the npm registry. The registry is accessed via the client, and the available packages can be browsed and searched via the npm website. The package manager and the registry are managed by npm, Inc.
Step 1
First, all the necessary packages should be updated in your Linux repository using the following command.
$sudo apt update
Step 2
Install nodejs package which contains binaries for npm as well as for Node.js
$sudo apt install nodejs
Step 3
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.
Conclusion
Among the many methods of installing npm in Linux, here we learned one of the simplest methods.
As a Director of Eternal Web Private Ltd an AWS consulting partner company, Nirav is responsible for its operations. AWS, cloud-computing and digital transformation are some of his favorite topics to talk about. His key focus is to help enterprises adopt technology, to solve their business problem with the right cloud solutions.
Have queries about your project idea or concept? Please drop in your project details to discuss with our AWS Global Cloud Infrastructure service specialists and consultants.