Atlas · fluency
Package managers
Tools that fetch the code your project depends on, and record exactly which versions you got.
In plain words
Most projects build on other people’s code. A package manager downloads it, puts it where your program can find it, and keeps track of versions.
How it works
npm’s manual calls it the package manager for the Node JavaScript platform: it puts modules where Node can find them and manages dependency conflicts. It writes package-lock.json, which records the exact tree it installed so later installs reproduce it. npm install reads that file.
Going deeper
Agents install packages too. Check that a package name is real before you let one install it, and commit the lock file so every machine gets the same versions.
Sources
- npm npm
npm is the package manager for the Node JavaScript platform. It puts modules in place so that node can find them, and manages dependency conflicts intelligently.
Most commonly, you use it to publish, discover, install, and develop node programs.
- package-lock.json npm
package-lock.json is automatically generated for any operations where npm modifies either the node_modules tree, or package.json.
It describes the exact tree that was generated, such that subsequent installs are able to generate identical trees, regardless of intermediate dependency updates.
Quotes were checked against the live pages on 2026-11-12.