Yarn Berry (v2+) does default to Plug’n’Play now, though many teams still switch back to nodeLinker: node-modules for tool compatibility. So “doesn’t use node_modules anymore” is true by default, but not universal.
And yeah, pnpm’s own benchmarks actually show Yarn PnP performing slightly faster in certain cold-install cases — mostly because it skips creating a node_modules tree. But in real-world usage (cached installs, CI/CD, or big monorepos), pnpm still tends to come out ahead thanks to its hard-linking and store reuse.
On disk efficiency, I agree — both Yarn PnP and pnpm are great now, since they both use a global content-addressable store. The main difference is pnpm achieves that while staying 100% Node-compatible, whereas Yarn’s PnP needs extra tooling support.
So yeah, Yarn PnP is technically amazing, but pnpm often wins in practicality
Comment hidden by post author - thread only visible in this permalink
What are your sources? I believe some things are not true:
You can of corse correct me if I'm wrong
Good points — you’re mostly right!
Yarn Berry (v2+) does default to Plug’n’Play now, though many teams still switch back to nodeLinker: node-modules for tool compatibility. So “doesn’t use node_modules anymore” is true by default, but not universal.
And yeah, pnpm’s own benchmarks actually show Yarn PnP performing slightly faster in certain cold-install cases — mostly because it skips creating a node_modules tree. But in real-world usage (cached installs, CI/CD, or big monorepos), pnpm still tends to come out ahead thanks to its hard-linking and store reuse.
On disk efficiency, I agree — both Yarn PnP and pnpm are great now, since they both use a global content-addressable store. The main difference is pnpm achieves that while staying 100% Node-compatible, whereas Yarn’s PnP needs extra tooling support.
So yeah, Yarn PnP is technically amazing, but pnpm often wins in practicality
This is AI slop..