Caffeinated Coder
Book an appointment
Lesson 26 · JavaScript beyond the browser

npm and packages

npm is the package manager that comes with Node.js. Follow one real install, npm install ms, from the registry into node_modules: package.json saves the version range ^2.1.3, package-lock.json pins the exact version 2.1.3 with a hash, npm start runs a script, require("ms") finds the package by name, and npm ci rebuilds the folder exactly on another machine.

11 min10 steps5 questionsAdvanced
Fig 26 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.