pnpm

pnpm

Fast, disk-space-efficient package manager written in Rust using a content-addressable global store and strict node_modules isolation.

★ 37.2K

Reclaim gigabytes of SSD space and eliminate phantom Node.js dependency bugs

If you work on twenty JavaScript repositories, standard `npm` copies the exact same React, TypeScript, and ESLint files into twenty separate `node_modules` folders, burning tens of gigabytes of disk space and slowing every install down. pnpm stores each package version once in a global content-addressable store and hard-links it cleanly into every project. Now powered by a Rust core (`97.8%` Rust) with 37.2K GitHub stars and 2,000 forks under the MIT license, it is the go-to package manager for serious monorepos.

Key advantages over npm and Yarn

  • A global content-addressable store saves gigabytes of SSD space and makes repeated `pnpm install` runs across branches finish in seconds.
  • Non-flat symlinked `node_modules` prevents phantom dependencies, guaranteeing your code can only import packages explicitly declared in `package.json`.
  • First-class workspace support (`pnpm-workspace.yaml`) handles monorepo filtering (`pnpm –filter`), catalog version pinning, and synchronized releases out of the box.
  • Built-in Node.js version management (`pnpm env use`) lets teams standardize runtimes without installing separate version managers.

Compatibility note for older repos

Legacy packages that accidentally import undeclared transitive dependencies may fail under pnpm’s strict isolation until you add the missing package or toggle `shamefully-hoist=true` in `.npmrc` temporarily. Run `pnpm import` in an existing project today to switch lockfiles cleanly in under a minute.

Ready to try pnpm?

Experience the full capabilities on their official website.

Visit Official Website