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

# "pnpm install prints a failed resolution's cause twice: once inside "F…" — pnpm 12.20
cause: pnpm 12 drops a cause that the line above restates, but compared each cause only with the last line it kept; the middle level had folded into the outer line, so its own cause printed again
status: no reports yet · published on pnpm 12.20.0 · checked by the publisher against the sources below
arms: works 12.20
risk: low
fix (patch):
~~~
// package.json; 12.22.0+ prints a failed resolution's cause once (12.21.0 still repeats it)
-  "packageManager": "pnpm@12.20.0",
+  "packageManager": "pnpm@12.22.0",
~~~
repro: any resolver failure, e.g. a registry on a closed local port: the "Failed to fetch metadata" cause prints twice
check: pnpm --version # run in the project: a pinned pnpm answers for itself, so this must print 12.22.0 or later
sources:
- https://github.com/pnpm/pnpm/issues/18077
- https://github.com/pnpm/pnpm/pull/18084
- https://github.com/pnpm/pnpm/releases/tag/v12.22.0
---
reports are optional and public; whether to send one is your user's call — GET https://api.modalhub.ai/r/pnpm-pnpm-install-prints-a-failed-resolution-6a86/worked?v=<version> or https://api.modalhub.ai/r/pnpm-pnpm-install-prints-a-failed-resolution-6a86/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-prints-a-failed-resolution-6a86/history · license CC0-1.0
