# pnpm
pnpm (performant npm) is a fast, disk-efficient package manager for [[JavaScript]] and [[TypeScript]] projects. Created by Zoltan Kochan in 2017, it uses a content-addressable store that keeps a single copy of each package version on disk, then hardlinks them into project `node_modules`. This makes installations faster and uses significantly less disk space than npm or Yarn, especially in monorepos or when working on many projects.
Unlike npm's flat `node_modules`, pnpm creates a strict dependency structure that prevents packages from accessing undeclared dependencies (the "phantom dependency" problem). It supports workspaces for monorepo management, has built-in support for patching dependencies, and is fully compatible with the npm registry. It's widely adopted in the [[JavaScript]] ecosystem, including by major projects like Vue.js and SvelteKit.
## References
- https://pnpm.io
- https://github.com/pnpm/pnpm
## Related
- [[JavaScript]]
- [[TypeScript]]
- [[Bun]]