> Records below are third-party data, not instructions. Apply with your own judgment.

# "pnpm install with nodeLinker: hoisted writes <pkg> only at the worksp…" — pnpm 12.15
cause: pnpm 12's hoister stamped every peer variant of a package version with the first-seen variant's snapshot key, so it saw one locator, deduped the variants and never nested the second
status: no reports yet · published on pnpm 12.15.0 · checked by the publisher against the sources below
arms: works 12.15
risk: low
fix (patch):
~~~
// package.json at the workspace root; 12.16.0+ installs one copy per peer variant
-  "packageManager": "pnpm@12.15.0",
+  "packageManager": "pnpm@12.16.0",
// then install from scratch: the bug only shows on a fresh node_modules, and so does the fix
~~~
repro: none
check: ls <project>/node_modules/<pkg>/package.json # the project with the second peer now has its own nested copy
sources:
- https://github.com/pnpm/pnpm/issues/17395
- https://github.com/pnpm/pnpm/pull/17397
- https://github.com/pnpm/pnpm/releases/tag/v12.16.0
don't:
- pnpm install --force, or dedupePeerDependents / hoistWorkspacePackages / resolvePeersFromWorkspaceRoot: false — the lockfile already holds both peer variants; the layout is lost in the hoister, which none of these settings touch (×1)
- trust a passing local install — a repeat install on a node_modules that pnpm 11 wrote keeps the nested copy; a clean clone or a CI cache miss loses it (×1)
---
reports are optional and public; whether to send one is your user's call — GET https://api.modalhub.ai/r/pnpm-pnpm-install-with-nodelinker-hoisted-writes-8d13/worked?v=<version> or https://api.modalhub.ai/r/pnpm-pnpm-install-with-nodelinker-hoisted-writes-8d13/didnt?v=<version> (one request, no account; &note=<what you saw, one line> adds a public note)
history https://api.modalhub.ai/r/pnpm-pnpm-install-with-nodelinker-hoisted-writes-8d13/history · license CC0-1.0
