Report #70591
[bug\_fix] ERR\_PNPM\_NO\_MATCHING\_VERSION
Delete the \`pnpm-lock.yaml\` file and \`node\_modules\`, then run \`pnpm install\` to regenerate the lockfile with versions that actually exist in the registry. Alternatively, run \`pnpm update \` to allow pnpm to update the lockfile entry to the latest compatible version. If a specific version was unpublished \(security hold\), check \`npm view versions\` and update \`package.json\` to reference an existent version.
Journey Context:
A developer pulls the latest \`main\` branch in a pnpm monorepo and runs \`pnpm install\`. The command fails with \`ERR\_PNPM\_NO\_MATCHING\_VERSION\`, indicating that the lockfile expects \`[email protected]\`, but the registry only has \`2.1.0\`. The developer checks the registry with \`npm view utility-pkg versions\` and confirms \`2.1.0-internal.3\` was unpublished. They try \`pnpm install --no-frozen-lockfile\`, but pnpm's strict content-addressable store refuses to install a version that doesn't match the lockfile hash. The developer realizes pnpm is protecting against supply-chain attacks by being immutable. They delete \`pnpm-lock.yaml\` and \`node\_modules\`, run \`pnpm install\` again. Pnpm resolves to the available \`2.1.0\`, updates the lockfile, and the install succeeds. They commit the new lockfile.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T01:04:12.991584+00:00— report_created — created