Go to file
Zoltan Kochan 5b7adbd9b6
ci: post to mastodon on release
2023-02-18 03:27:06 +02:00
.changeset fix: don't try to fix a lockfile that did not exist (#6091) 2023-02-16 13:29:42 +02:00
.github ci: post to mastodon on release 2023-02-18 03:27:06 +02:00
.husky ci: use pnpm v7 (#4307) 2022-02-08 02:33:55 +02:00
.meta-updater chore(release): 7.27.0-0 2023-02-05 12:51:29 +02:00
__fixtures__ fix: path info in dependencies hierarchy tree (#6001) 2023-02-02 03:34:16 +02:00
__patches__ refactor: put all non-public projects to directories that start with __ 2022-11-20 02:40:44 +02:00
__typings__ feat: implement the config commands (#5829) 2022-12-24 17:08:43 +02:00
__utils__ ci: skip audit temporarily 2023-02-11 04:04:35 +02:00
cli chore(release): 7.27.0 2023-02-08 14:27:15 +02:00
config chore(release): 7.27.0 2023-02-08 14:27:15 +02:00
env chore(release): 7.27.0 2023-02-08 14:27:15 +02:00
exec chore(release): 7.27.0 2023-02-08 14:27:15 +02:00
fetching fix: print a hint on integrity error (#6090) 2023-02-16 04:25:06 +02:00
fs chore(release): 7.27.0 2023-02-08 14:27:15 +02:00
hooks chore(release): 7.27.0 2023-02-08 14:27:15 +02:00
lockfile chore(release): 7.27.0 2023-02-08 14:27:15 +02:00
network fix: error message on broken proxy URL 2023-02-12 18:29:57 +02:00
packages chore(release): 7.27.0 2023-02-08 14:27:15 +02:00
patching chore(release): 7.27.0 2023-02-08 14:27:15 +02:00
pkg-manager fix: don't try to fix a lockfile that did not exist (#6091) 2023-02-16 13:29:42 +02:00
pkg-manifest chore(release): 7.27.0 2023-02-08 14:27:15 +02:00
pnpm docs: add `store path` description to cli help (#6068) 2023-02-11 03:09:23 +02:00
releasing chore(release): 7.27.0 2023-02-08 14:27:15 +02:00
resolving chore(release): 7.27.0 2023-02-08 14:27:15 +02:00
reviewing chore(release): 7.27.0 2023-02-08 14:27:15 +02:00
store chore(release): 7.27.0 2023-02-08 14:27:15 +02:00
text/comments-parser fix: remove `suppressImplicitAnyIndexErrors` from typescript settings (#5991) 2023-01-28 18:19:26 +02:00
workspace chore(release): 7.27.0 2023-02-08 14:27:15 +02:00
.editorconfig chore: add .editorconfig 2017-03-20 21:53:18 +02:00
.eslintignore refactor: group projects in different subdirectories (#5659) 2022-11-20 01:35:22 +02: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 fix: path info in dependencies hierarchy tree (#6001) 2023-02-02 03:34:16 +02:00
.npmrc fix: remove `suppressImplicitAnyIndexErrors` from typescript settings (#5991) 2023-01-28 18:19:26 +02:00
CODE_OF_CONDUCT.md docs(coc): update email 2022-01-11 15:59:46 +02:00
CONTRIBUTING.md refactor: group projects in different subdirectories (#5659) 2022-11-20 01:35:22 +02:00
LICENSE docs(license): update year 2023-01-01 04:26:13 +02:00
README.md docs: remove nhost and takeshape from sponsors 2023-01-31 22:38:34 +02: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 fix: only build git-hosted dependency if it has no main file (#5868) 2023-01-03 14:38:20 +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: skip audit temporarily 2023-02-11 04:04:35 +02:00
pnpm-lock.yaml fix: error message on broken proxy URL 2023-02-12 18:29:57 +02:00
pnpm-workspace.yaml feat(plugin-commands-patching): apply existed patch file when re-patch (#5906) 2023-01-12 04:19:22 +02:00
renovate.json refactor: all packages should be in the `@pnpm` scope (#5785) 2022-12-13 03:46:56 +02: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 | Português Brasileiro

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.
  • See the full feature comparison with npm and Yarn.

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

Gold Sponsors

Silver 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, 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