Install Node Package Manager in AWS Linux machine

Install Node Package Manager in AWS Linux machine

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.

Talk to AWS Certified Consultant

    Spread Love By Sharing:

    Let’s Talk About Your Needed AWS Infrastructure Management Services

    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.

    • Swift Hiring and Onboarding
    • Experienced and Trained AWS Team
    • Quality Consulting and Programming
    Let’s Connect and Discuss Your Project