1. License
“to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software”
Using pnpm to build a paid product has no conditions; keep the MIT notice only if you redistribute pnpm itself.
github.com/pnpm/pnpm/blob/main/LICENSE3. Used by agents' projects
Dependency in 8 public GitHub projects set up for AI coding agents that we scanned (0.1%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
From the package registry and GitHub, checked daily; card checked Nov 11, 2026. Tap a verdict to see its source.How we checkedReport an error
What pnpm does
pnpm is a free package manager for JavaScript projects, used in place of npm to install the packages a project needs. It keeps one copy of each package version on your disk and links it into every project, so repeat installs are quick. By default it does not run the install scripts of the packages you add until you approve them.
What people build with it
Install a project's packages quickly
Your AI assistant sets up a new web app and adds its packages; a second project with the same packages gets them from disk without downloading again.
Several apps in one code folder
A website, an admin panel and a shared UI kit live in one shared code folder and use each other's code without publishing it first.
Stop surprise install scripts
A package you add tries to run its own setup program during install; pnpm stops and asks you to approve it first.
One version of React for every app
In a project with several apps, you set a shared package version in one place and update it with one line.
Fix a bug inside a package you use
A package has a small bug and the fix is not released yet; you keep your own fix applied on every install.
Many quick prototypes on one laptop Idea
An AI assistant creates a new app folder for every idea you try; they all share one store, so the disk does not fill with copies.
pnpm popularity
Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated
How pnpm is used
- pnpm is a dependency in 8 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 60 projects, and what it is used with below comes from all of them.
- Projects that use it most often also use Vitest (76.7%), Vite (73.3%), cross-env (51.7%).
Often used with
More about pnpm
Funding
- GitHub Sponsors: https://github.com/pnpm
- Open Collective: https://opencollective.com/pnpm
- 45 GitHub sponsors
Agent Skills for it
- pnpm: Node.js package manager with strict dependency resolution. Use when running pnpm specific commands, configuring workspaces via pnpm-workspac
More in Dev workflow and config
Alternatives
pnpm This page
Pick Yarn when your team already uses it or you want its Plug'n'Play install mode.
Pick Bun when you want one tool that runs JavaScript, bundles it and installs packages.
Pick Deno when you want a JavaScript and TypeScript runtime with built-in tools and permission controls.
Get started
Tell your AI assistant
“Use pnpm 12 (pin "packageManager" "pnpm@12.18.0") for this project, install with pnpm add / pnpm install, commit pnpm-lock.yaml, and approve build scripts only for trusted packages through allowBuilds in pnpm-workspace.yaml.”
Install pnpm on your computer. The standalone script needs no Node.js; on Windows the docs suggest the npm route.
curl -fsSL https://get.pnpm.io/install.sh | sh -From pnpm.io/installation
Or install it with npm, which needs Node.js 18 or newer.
npm install -g pnpm@latestFrom pnpm.io/installation
In a project, use pnpm add and pnpm install where you used npm install. A project that had npm's lockfile should run pnpm import first.
pnpm add saxFrom pnpm.io/cli/add
Mistakes to avoid
pnpm will not install versions younger than minimumReleaseAge, 1440 minutes by default, including in transitive packages.
Install scripts are the usual way compromised packages run code, and strictDepBuilds fails the install on purpose.
Only declared packages are linked at the top of node_modules; in our run debug's own package ms stayed inside .pnpm.
pnpm does not read npm's lockfile and would pick versions again from scratch.
pnpm 12 rejects both forms that pnpm 11 accepted.
Questions
Do I need Node.js to use pnpm 12?
No, not for pnpm itself when installed with the standalone script. Your project may still need Node.js to run.
Why did install fail with ERR_PNPM_IGNORED_BUILDS?
A package wants to run a build script that nobody approved. Approve it with pnpm approve-builds or allowBuilds.
Why does pnpm not install a version released an hour ago?
The minimumReleaseAge setting waits 1440 minutes (one day) by default. Set it to 0 in pnpm-workspace.yaml to opt out.
My tools break with the linked node_modules folder. What can I do?
Set nodeLinker to hoisted, which builds a flat folder like npm does.
Is there a shorter command?
Yes. pn is short for pnpm, and pnx is short for pnpm dlx, which runs a package without adding it.