Go to file
Zoltan Kochan 99d5beac0f ci: update verdaccio cache 2022-06-01 02:48:58 +03:00
.changeset fix: pnpm pre-compiled binaries crash when NODE_MODULES is set (#4823) 2022-05-31 02:50:42 +03:00
.github ci: update verdaccio cache 2022-06-01 02:48:58 +03:00
.husky ci: use pnpm v7 (#4307) 2022-02-08 02:33:55 +02:00
.meta-updater chore(release): 7.1.0 2022-05-12 17:19:38 +03: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 test(core): fix 2022-06-01 02:25:35 +03:00
privatePackages chore: publish utility packages for testing 2022-05-23 18:56:37 +03:00
registry-mirror fix: install a pkg hosted not under registry domain 2020-05-28 23:43:02 +03:00
typings fix: correctly detect the active Node.js version (#4780) 2022-05-23 11:34:51 +03:00
utils chore: setup dev version of pnpm 2022-05-07 21:03:14 +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 chore(eslint): set root (#4515) 2022-04-01 15:55:45 +03:00
.gitattributes test: cache sinopia storage 2016-12-18 20:06:38 +02:00
.gitignore ci: update verdaccio cache 2022-06-01 02:48:58 +03:00
.npmrc chore: always check that dependencies support Node.js 14 2022-05-24 20:44:30 +03:00
CODE_OF_CONDUCT.md docs(coc): update email 2022-01-11 15:59:46 +02:00
CONTRIBUTING.md chore: setup dev version of pnpm 2022-05-07 21:03:14 +03:00
LICENSE docs(license): update years 2022-01-01 22:15:39 +02:00
README.md docs(README): add utm params to sponsor links 2022-04-29 03:50:46 +03:00
SECURITY.md docs(security): deprecate pnpm v5 2022-04-29 17:34:56 +03: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 ci: update verdaccio cache 2022-06-01 02:48:58 +03:00
pnpm-lock.yaml fix: pnpm pre-compiled binaries crash when NODE_MODULES is set (#4823) 2022-05-31 02:50:42 +03:00
pnpm-workspace.yaml chore: update meta-updater 2021-06-28 18:21:55 +03:00
renovate.json ci: renovate bot setting to pin actions to a full length commit SHA (#4768) 2022-05-21 01:46:30 +03:00
tsconfig.lint.json style: use eslint instead of tslint 2020-08-24 02:01:25 +03:00
verdaccio.yaml ci: update verdaccio cache 2022-06-01 02:48:58 +03:00

README.md

Stand With Ukraine

中文 | 日本語 | 한국어 | 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