Monorepo Disk Bloat and How pnpm's Content-Addressable Store Fixes It
pnpm stores packages once in a global content-addressable store and hardlinks them into workspaces, eliminating monorepo disk duplication—if your tools handle symlinks.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
pnpm stores packages once in a global content-addressable store and hardlinks them into workspaces, eliminating monorepo disk duplication—if your tools handle symlinks.
Learn how to decide between Yarn PnP and classic node_modules installs in a monorepo, compare trade‑offs, and verify the chosen layout with concrete commands.
Stop duplicating core frameworks in your node_modules. Learn how to use npm peerDependencies and peerDependenciesMeta to prevent the dual package hazard in library development.
Yarn Plug'n'Play eliminates node_modules, but the speed gain comes with compatibility costs. Here is how to evaluate it safely.
pnpm workspaces store every dependency once in a content-addressable store and link it into each package, ending the monorepo habit of keeping ten copies of lodash. Here's how it works, a concrete setup, and the flat-tree trade-off.
Learn how to diagnose and fix 'Module Not Found' errors in pnpm caused by strict dependency resolution and phantom dependencies, including when to use shamefully-hoist.
Learn how to diagnose and fix 'Module not found' errors caused by pnpm's non-flat node_modules structure and how to handle phantom dependencies.
pnpm's symlink-based node_modules makes phantom dependencies fail fast. This post explains the isolated layout, how to verify it locally, and the tooling trade-offs of strict resolution.
pnpm stores each package version once in a global content-addressable store and builds node_modules from hard links and symlinks, saving disk space and blocking phantom dependencies by default.