Forbes magazine logo Ranked Best Coding Bootcamps 2023

What is NPM?

Web Development Jargons Explained in 4 Different Ways

TLDR: NPM, short for Node Package Manager, is a package manager for JavaScript libraries. NPM is used to deal with installation, removal, updates of JavaScript packages in both front-end and back-end projects.


Explain like I only speak in plain English

NPM, short for Node Package Manager, is a package manager for JavaScript libraries. NPM is used to deal with installation, removal, updates of JavaScript packages in both front-end and back-end projects.

There are countless JavaScript packages available that provide all sorts of functionalities. JavaScript libraries can drastically reduce development time of projects as engineers don't have to write all the features themselves.

NPM comes bundled with NodeJs as the default package manager. Although there are alternative JavaScript package managers, NPM remains to be the popular choice today.

Explain like I'm a total nerd

To avoid reinventing the wheel, engineers create and share standalone programs for a specific use case as a package for others to easily incorporate into their projects.

NPM’s job is to manage those packages, this includes package creation, package hosting, package downloading, package versioning, package management in a project and more.

Engineers use a file called package.json to manage the package dependencies in a JavaScript project.

In 2016, many major websites went down because a heavily depended upon NPM package was unpublished. This package only had 11 lines of code.

Explain like I like videos

Explain like I already know it

You don’t have to use NPM as the package manager for your JavaScript projects, there are other alternatives such as Yarn, an initiative started by a team of engineers at Facebook.

Also, you don’t have to use a package manager at all. You can always download the full source code of the packages you want to use and import them into your projects. But this means you will have to deal with package dependencies, versioning, updates manually. Which quickly becomes laborious as the number of dependencies increases.

We are trusted by

Students and instructors from world-class organizations

Imperial College London
Carnegie Mellon University
City University of Hong Kong
Hack Reactor
Cisco Meraki
University of Oxford
Swift
Bazaarvoice
Waterloo
Uber
AtlanTech
Tumblr
Boston College
Bombardier Aerospace
University of St. Andrews
New York University
Minerva Schools at KGI
Merrill Lynch
Riot Games
JP Morgan
Morgan Stanley
Advanced Placement®
Google
KPMG
The University of Hong Kong
University of Toronto
SCMP
Moat
Zynga
Hello Toby
Deloitte
Goldman Sachs
Yahoo
HSBC
General Assembly
Tesla
McGill University
Microsoft

Join the upcoming Cohort #96

Enroll for December 2nd, 2024