{
 "kind": "tool",
 "slug": "pnpm",
 "path": "tools/pnpm/",
 "name": "pnpm",
 "maker": null,
 "density": "full",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Dev workflow and config",
   "tools/dev-workflow/"
  ]
 ],
 "lead": "Install JavaScript packages faster, with less disk.",
 "chips": [
  {
   "label": "Dev workflow and config",
   "path": "tools/dev-workflow/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install pnpm"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/pnpm/pnpm"
  },
  {
   "label": "Website",
   "href": "https://pnpm.io"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": "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",
   "note": "Using pnpm to build a paid product has no conditions; keep the MIT notice only if you redistribute pnpm itself.",
   "src": "https://github.com/pnpm/pnpm/blob/main/LICENSE"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 24, 2026",
   "note": "Latest GitHub release Nov 22, 2026. ",
   "src": "https://github.com/pnpm/pnpm"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "8 projects",
   "status": "info",
   "sub": "#116 of 299 in its category",
   "note": "Dependency in 8 public GitHub projects set up for AI coding agents that we scanned (0.1%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Community skills",
   "status": "info",
   "sub": "1 skills by others",
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily; card checked Nov 11, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What pnpm does",
   "parts": [
    {
     "t": "prose",
     "text": "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."
    },
    {
     "t": "h3",
     "text": "What people build with it"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "Install a project's packages quickly",
       "text": "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.",
       "idea": false
      },
      {
       "title": "Several apps in one code folder",
       "text": "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.",
       "idea": false
      },
      {
       "title": "Stop surprise install scripts",
       "text": "A package you add tries to run its own setup program during install; pnpm stops and asks you to approve it first.",
       "idea": false
      },
      {
       "title": "One version of React for every app",
       "text": "In a project with several apps, you set a shared package version in one place and update it with one line.",
       "idea": false
      },
      {
       "title": "Fix a bug inside a package you use",
       "text": "A package has a small bug and the fix is not released yet; you keep your own fix applied on every install.",
       "idea": false
      },
      {
       "title": "Many quick prototypes on one laptop",
       "text": "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.",
       "idea": true
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "pnpm popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "76",
       "of": "/ 100",
       "l": "Gid Score, #194 overall"
      },
      {
       "n": "358M",
       "l": "downloads a week, npm"
      },
      {
       "n": "37.2K",
       "l": "GitHub stars"
      },
      {
       "n": "8",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How pnpm is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "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%)."
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 76.7% of its projects",
       "v": "Vitest",
       "path": "tools/vitest/"
      },
      {
       "l": "In 73.3% of its projects",
       "v": "Vite",
       "path": "tools/vite/"
      },
      {
       "l": "In 51.7% of its projects",
       "v": "cross-env",
       "path": "tools/cross-env/"
      },
      {
       "l": "In 51.7% of its projects",
       "v": "Husky",
       "path": "tools/husky/"
      },
      {
       "l": "In 46.7% of its projects",
       "v": "viem",
       "path": "tools/viem/"
      },
      {
       "l": "In 45.0% of its projects",
       "v": "concurrently",
       "path": "tools/concurrently/"
      },
      {
       "l": "In 41.7% of its projects",
       "v": "csv-parse",
       "path": "tools/csv-parse/"
      },
      {
       "l": "In 41.7% of its projects",
       "v": "Lerna",
       "path": "tools/lerna/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about pnpm",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "GitHub Sponsors: https://github.com/pnpm",
        "Open Collective: https://opencollective.com/pnpm",
        "45 GitHub sponsors"
       ]
      },
      {
       "title": "Agent Skills for it",
       "path": "skills/",
       "items": [
        "pnpm: Node.js package manager with strict dependency resolution. Use when running pnpm specific commands, configuring workspaces via pnpm-workspac"
       ]
      },
      {
       "title": "More in Dev workflow and config",
       "path": "tools/dev-workflow/",
       "items": [
        {
         "text": "dotenv",
         "path": "tools/dotenv/"
        },
        {
         "text": "Husky",
         "path": "tools/husky/"
        },
        {
         "text": "python-dotenv",
         "path": "tools/python-dotenv/"
        },
        {
         "text": "lint-staged",
         "path": "tools/lint-staged/"
        },
        {
         "text": "concurrently",
         "path": "tools/concurrently/"
        },
        {
         "text": "Rich",
         "path": "tools/rich/"
        },
        {
         "text": "Pydantic Settings",
         "path": "tools/pydantic-settings/"
        },
        {
         "text": "cross-env",
         "path": "tools/cross-env/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "pnpm",
       "me": true,
       "facts": [
        "MIT",
        "Gid 76",
        "358M/wk"
       ]
      },
      {
       "name": "Yarn",
       "why": "Pick Yarn when your team already uses it or you want its Plug'n'Play install mode.",
       "path": "tools/yarn/",
       "facts": []
      },
      {
       "name": "Bun",
       "why": "Pick Bun when you want one tool that runs JavaScript, bundles it and installs packages.",
       "path": "tools/bun/",
       "facts": []
      },
      {
       "name": "Deno",
       "why": "Pick Deno when you want a JavaScript and TypeScript runtime with built-in tools and permission controls.",
       "path": "tools/deno/",
       "facts": []
      }
     ],
     "more": "Compare pnpm with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "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."
    },
    {
     "t": "steps",
     "items": [
      {
       "text": "Install pnpm on your computer. The standalone script needs no Node.js; on Windows the docs suggest the npm route.",
       "code": "curl -fsSL https://get.pnpm.io/install.sh | sh -",
       "src": "https://pnpm.io/installation"
      },
      {
       "text": "Or install it with npm, which needs Node.js 18 or newer.",
       "code": "npm install -g pnpm@latest",
       "src": "https://pnpm.io/installation"
      },
      {
       "text": "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.",
       "code": "pnpm add sax",
       "src": "https://pnpm.io/cli/add"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "pnpm add some-package@latest right after a release, then retrying or deleting the lockfile when the new version is not found",
       "fix": "Wait for the one-day delay, or list that package under minimumReleaseAgeExclude; do not turn the delay off for everything",
       "why": "pnpm will not install versions younger than minimumReleaseAge, 1440 minutes by default, including in transitive packages."
      },
      {
       "dont": "Setting dangerouslyAllowAllBuilds true to get past ERR_PNPM_IGNORED_BUILDS",
       "fix": "Approve only the packages that need it, e.g. pnpm approve-builds esbuild, or allowBuilds in pnpm-workspace.yaml",
       "why": "Install scripts are the usual way compromised packages run code, and strictDepBuilds fails the install on purpose."
      },
      {
       "dont": "Importing a package in your code that is not in package.json because it worked with npm",
       "fix": "pnpm add the package you import, or set nodeLinker to hoisted for old tools that need a flat folder",
       "why": "Only declared packages are linked at the top of node_modules; in our run debug's own package ms stayed inside .pnpm."
      },
      {
       "dont": "Deleting package-lock.json and running pnpm install on an existing npm project",
       "fix": "Run pnpm import first, check the new pnpm-lock.yaml, then delete package-lock.json",
       "why": "pnpm does not read npm's lockfile and would pick versions again from scratch."
      },
      {
       "dont": "CI scripts with pnpm install --frozen-lockfile false or pnpm install --resolution-only after moving to pnpm 12",
       "fix": "Use pnpm install --no-frozen-lockfile, and pnpm peers check instead of --resolution-only",
       "why": "pnpm 12 rejects both forms that pnpm 11 accepted."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "Do I need Node.js to use pnpm 12?",
       "a": "No, not for pnpm itself when installed with the standalone script. Your project may still need Node.js to run.",
       "evidence": {
        "url": "https://pnpm.io/installation",
        "quote": "pnpm 12 only needs Node.js when it is installed from npm; the version installed by the standalone script runs without Node.js."
       }
      },
      {
       "q": "Why did install fail with ERR_PNPM_IGNORED_BUILDS?",
       "a": "A package wants to run a build script that nobody approved. Approve it with pnpm approve-builds or allowBuilds.",
       "evidence": {
        "url": "https://pnpm.io/settings/build",
        "quote": "When strictDepBuilds is enabled, the installation will exit with a non-zero exit code if any dependencies have unreviewed build scripts (aka postinstall scripts)."
       }
      },
      {
       "q": "Why does pnpm not install a version released an hour ago?",
       "a": "The minimumReleaseAge setting waits 1440 minutes (one day) by default. Set it to 0 in pnpm-workspace.yaml to opt out.",
       "evidence": {
        "url": "https://pnpm.io/supply-chain-security",
        "quote": "To opt out, set minimumReleaseAge: 0 in pnpm-workspace.yaml ."
       }
      },
      {
       "q": "My tools break with the linked node_modules folder. What can I do?",
       "a": "Set nodeLinker to hoisted, which builds a flat folder like npm does.",
       "evidence": {
        "url": "https://pnpm.io/motivation",
        "quote": "If your tooling doesn't work well with symlinks, you may still use pnpm and set the nodeLinker setting to hoisted ."
       }
      },
      {
       "q": "Is there a shorter command?",
       "a": "Yes. pn is short for pnpm, and pnx is short for pnpm dlx, which runs a package without adding it.",
       "evidence": {
        "url": "https://pnpm.io/pnpm-cli",
        "quote": "pn is available as a short alias for pnpm , and pnx as a short alias for pnpm dlx ."
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm pnpm"
  ],
  [
   "Category",
   "Dev workflow and config"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "75.5"
  ],
  [
   "Rank in category",
   "#116 of 299"
  ],
  [
   "GitHub",
   "pnpm/pnpm"
  ],
  [
   "Last change",
   "Nov 24, 2026"
  ]
 ],
 "good": [
  "Version 12 is a new build of pnpm written in Rust. It runs on its own, without Node.js, when installed by the standalone script.",
  "New package versions are held back for one day by default, to avoid freshly published bad releases.",
  "Code can only load packages listed in its own package list. Projects that relied on npm's flat folder may break until the missing package is added."
 ],
 "checked_line": "Read by AgentGid from 19 official pages, card checked Nov 11, 2026; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/pnpm.png"
}