Suggest an editImprove this articleRefine the answer for “What is pnpm?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)**pnpm** is an alternative package manager for Node.js that solves the main problem of npm and Yarn: **excessive duplication of dependencies in** `node_modules`. Its key feature is **hard links** and a shared cache, so the same package is not stored a thousand times for different projects. **Key point:** pnpm places hard links to a central cache store in `node_modules` instead of copies of packages, which saves disk space.Shown above the full answer for quick recall.Answer (EN)Image**pnpm** is an alternative package manager for Node.js that solves the main problem of npm and Yarn: **excessive duplication of dependencies in** `node_modules`. Its key feature is **hard links** and a shared cache, so the same package is not stored a thousand times for different projects. --- ### **The idea behind pnpm** - every package has a **central cache store on disk** - `node_modules` holds **not copies**, but **hard links to that cache** - this saves disk space and speeds up installation --- ### **Advantages of pnpm** | Advantage | What it gives | |---|---| | Disk space savings | dozens of gigabytes are not spent on duplicate dependencies | | Fast install | cache + hard links speed up `install` | | Strict node_modules structure | rules out errors that npm/Yarn sometimes mask | | Monorepo support (pnpm workspaces) | convenient for large projects | --- ### **Why it is considered more reliable** pnpm creates a **realistic dependency structure**, in which each package sees *only the modules actually listed in its* `package.json`. This prevents phantom dependencies, a problem that can occur in npm and Yarn. --- ### **Summary** **pnpm is a fast, space-efficient, and strict package manager** that uses a shared cache and hard links to work with dependencies efficiently. It solves the weak points of npm and Yarn, especially noticeable in large projects and monorepos.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.