npm 12
flat, hoisted
project node_modules/
debug/ copy
ms/ copy
pnpm 12
isolated, symlinked, hard-linked
1 · project node_modules/
debug symlink
↓ points into
2 · virtual store node_modules/.pnpm/
debug@4.4.1/node_modules/
debug/ files
ms symlink → ms@2.1.3/…
ms@2.1.3/node_modules/ms/ files
node_modules/ms hidden hoist
↓ every file is a hard link to
3 · store, one per machine
~/.local/share/pnpm/store/v11/files/51/b45089…
index.db SQLite index
