Go to file
Frozen FIsh c8acba5cd6
chore: fix typo (#4516)
2022-04-01 15:52:37 +03:00
.changeset docs: update changesets 2022-03-31 12:25:34 +03:00
.github feat: Node.js 12 is not supported 2022-03-15 02:18:08 +02:00
.husky ci: use pnpm v7 (#4307) 2022-02-08 02:33:55 +02:00
.meta-updater chore: replace deprecated String.prototype.substr() (#4479) 2022-03-25 23:04:20 +02:00
fixtures feat: pnpm list to show information whether the package is private or not (#4256) 2022-01-19 11:27:51 +02:00
packages fix: types 2022-03-31 16:39:30 +03:00
privatePackages fix: types 2022-03-31 16:01:54 +03:00
registry-mirror fix: install a pkg hosted not under registry domain 2020-05-28 23:43:02 +03:00
typings fix: use `@pnpm/graph-sequencer` instead of `graph-sequencer` (#4458) 2022-03-21 00:08:26 +02:00
utils chore: add missing peer dependencies 2022-03-31 14:51:17 +03:00
verdaccio ci: cache the verdaccio storage 2020-05-08 21:58:36 +03:00
.editorconfig chore: add .editorconfig 2017-03-20 21:53:18 +02:00
.eslintignore style: use eslint instead of tslint 2020-08-24 02:01:25 +03:00
.eslintrc.json refactor: simplify scripts for running lint (#3895) 2021-10-19 17:40:20 +03:00
.gitattributes test: cache sinopia storage 2016-12-18 20:06:38 +02:00
.gitignore ci: setup cache for TS and Jest (#4049) 2022-01-19 00:13:13 +02:00
.npmrc fix: side effects cache should work in a workspace 2022-01-14 17:37:01 +02:00
CODE_OF_CONDUCT.md docs(coc): update email 2022-01-11 15:59:46 +02:00
CONTRIBUTING.md refactor: add pnpm execution from the source code (#3927) 2021-10-29 12:01:41 +03:00
LICENSE docs(license): update years 2022-01-01 22:15:39 +02:00
README.md docs: add Vercel to sponsors 2022-03-05 02:50:36 +02:00
SECURITY.md docs(security): update email 2022-01-11 15:43:25 +02:00
commitlint.config.cjs chore: rename commitlint.config.js 2021-04-03 15:49:44 +03:00
jest.config.js ci: setup cache for TS and Jest (#4049) 2022-01-19 00:13:13 +02:00
jest.setup.js test: retry tests on failure 2021-03-14 14:24:34 +02:00
lint-commits.sh chore: fix typo (#4516) 2022-04-01 15:52:37 +03:00
package.json fix: types 2022-03-31 16:01:54 +03:00
pnpm-lock.yaml fix: types 2022-03-31 16:39:30 +03:00
pnpm-workspace.yaml chore: update meta-updater 2021-06-28 18:21:55 +03:00
renovate.json feat: rename supi to @pnpm/core 2021-10-17 02:43:29 +03:00
tsconfig.lint.json style: use eslint instead of tslint 2020-08-24 02:01:25 +03:00
verdaccio.yaml chore: update verdaccio.yaml 2020-11-25 01:50:41 +02:00

README.md

SWUbanner

中文 | 日本語 | Italiano | Русский | Français

Fast, disk space efficient package manager:

  • Fast. Up to 2x faster than the alternatives (see benchmark).
  • Efficient. Files inside node_modules are linked from a single content-addressable storage.
  • Great for monorepos.
  • Strict. A package can access only dependencies that are specified in its package.json.
  • Deterministic. Has a lockfile called pnpm-lock.yaml.
  • Works as a Node.js version manager. See pnpm env use.
  • Works everywhere. Supports Windows, Linux, and macOS.
  • Battle-tested. Used in production by teams of all sizes since 2016.

To quote the Rush team:

Microsoft uses pnpm in Rush repos with hundreds of projects and hundreds of PRs per day, and weve found it to be very fast and reliable.

npm version Join the chat at Discord OpenCollective OpenCollective Twitter Follow

Sponsors

Support this project by becoming a sponsor.

Background

pnpm uses a content-addressable filesystem to store all files from all module directories on a disk. When using npm or Yarn, if you have 100 projects using lodash, you will have 100 copies of lodash on disk. With pnpm, lodash will be stored in a content-addressable storage, so:

  1. If you depend on different versions of lodash, only the files that differ are added to the store. If lodash has 100 files, and a new version has a change only in one of those files, pnpm update will only add 1 new file to the storage.
  2. All the files are saved in a single place on the disk. When packages are installed, their files are linked from that single place consuming no additional disk space. Linking is performed using either hard-links or reflinks (copy-on-write).

As a result, you save gigabytes of space on your disk and you have a lot faster installations! If you'd like more details about the unique node_modules structure that pnpm creates and why it works fine with the Node.js ecosystem, read this small article: Flat node_modules is not the only way.

💖 Like this project? Let people know with a tweet

Getting Started

Benchmark

pnpm is up to 2x faster than npm and Yarn classic. See all benchmarks here.

Benchmarks on an app with lots of dependencies:

Backers

Thank you to all our backers! Become a backer

Contributors

This project exists thanks to all the people who contribute. Contribute.

License

MIT