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.
Node.js - https://nodejs.org/en/
Install Node.js - https://nodejs.org/en/ CLI.
Mac OS X
brew install node
See Node.js - https://nodejs.org/en/ to learn more about others OS.
npm install -g pnpm
Once you have installed pnpm, there is no need to use other package managers to update it. You can upgrade pnpm using itself, like so:
pnpm add -g pnpm
Here is a list of handy npm equivalents to get you started:
|npm command||pnpm equivalent|
|npm install||pnpm install|
npm command pnpm equivalent
npm install pnpm install
See Commands | pnpm CLI | pnpm - https://pnpm.io/pnpm-cli to learn more.
 Fast, disk space efficient package manager | pnpm - https://pnpm.io/
 pnpm/pnpm: Fast, disk space efficient package manager – 快速的，节省磁盘空间的包管理工具 - https://github.com/pnpm/pnpm