Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

pnpm

Install JavaScript packages faster, with less disk.

Dev workflow and configNPM

GitHubWebsite

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/LICENSE

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

76 / 100
Gid Score, #194 overall
358M
downloads a week, npm
37.2K
GitHub stars
8
agent projects use it
pnpm: downloads per weeknpm, pnpm 358,011,586
pnpm: GitHub starspnpm/pnpm 37,156

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

In 76.7% of its projects
In 73.3% of its projects
In 51.7% of its projects
In 51.7% of its projects
In 46.7% of its projects
In 45.0% of its projects
In 41.7% of its projects
In 41.7% of its projects

More about pnpm

Funding
  • GitHub Sponsors: https://github.com/pnpm
  • Open Collective: https://opencollective.com/pnpm
  • 45 GitHub sponsors

See all

Agent Skills for it
  • pnpm: Node.js package manager with strict dependency resolution. Use when running pnpm specific commands, configuring workspaces via pnpm-workspac

See all

More in Dev workflow and config

Alternatives

pnpm This page

MITGid 76358M/wk

Yarn

Pick Yarn when your team already uses it or you want its Plug'n'Play install mode.

Bun

Pick Bun when you want one tool that runs JavaScript, bundles it and installs packages.

Deno

Pick Deno when you want a JavaScript and TypeScript runtime with built-in tools and permission controls.

Compare pnpm with another tool

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.”

  1. 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

  2. Or install it with npm, which needs Node.js 18 or newer.

    npm install -g pnpm@latest

    From pnpm.io/installation

  3. 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 sax

    From pnpm.io/cli/add

Mistakes to avoid

pnpm add some-package@latest right after a release, then retrying or deleting the lockfile when the new version is not found
Wait for the one-day delay, or list that package under minimumReleaseAgeExclude; do not turn the delay off for everything

pnpm will not install versions younger than minimumReleaseAge, 1440 minutes by default, including in transitive packages.

Setting dangerouslyAllowAllBuilds true to get past ERR_PNPM_IGNORED_BUILDS
Approve only the packages that need it, e.g. pnpm approve-builds esbuild, or allowBuilds in pnpm-workspace.yaml

Install scripts are the usual way compromised packages run code, and strictDepBuilds fails the install on purpose.

Importing a package in your code that is not in package.json because it worked with npm
pnpm add the package you import, or set nodeLinker to hoisted for old tools that need a flat folder

Only declared packages are linked at the top of node_modules; in our run debug's own package ms stayed inside .pnpm.

Deleting package-lock.json and running pnpm install on an existing npm project
Run pnpm import first, check the new pnpm-lock.yaml, then delete package-lock.json

pnpm does not read npm's lockfile and would pick versions again from scratch.

CI scripts with pnpm install --frozen-lockfile false or pnpm install --resolution-only after moving to pnpm 12
Use pnpm install --no-frozen-lockfile, and pnpm peers check instead of --resolution-only

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.