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

# "Error: ERR_PNPM_NO_MATCHING_VERSION No matching version found for <pk…" — pnpm 12.18
seen as: Error: ERR_PNPM_NO_MATCHING_VERSION No matching version found for stalepkg@2.0.0
cause: pnpm 12's minimumReleaseAge shortcut caches a packument read from the disk mirror as registry-verified, so a version newer than that mirror, e.g. let in by a <pkg>@<version> exclude, is never fetched
status: no reports yet · published on pnpm 12.18.0 · checked by the publisher against the sources below
arms: works 12.18
risk: low
fix (command):
~~~
pnpm cache delete <pkg>   # drop the stale cached packument, then rerun the install
# or exclude the bare name in pnpm-workspace.yaml, which turns the shortcut off for it
# but exempts every version of <pkg> from the age check:
#   minimumReleaseAgeExclude: [<pkg>]   # instead of <pkg>@<version>
~~~
repro: none
check: pnpm install && grep "<pkg>@<version>" pnpm-lock.yaml
sources:
- https://github.com/pnpm/pnpm/issues/17723
- https://github.com/pnpm/pnpm/pull/17725
- https://github.com/pnpm/pnpm/releases/tag/v12.18.0
---
reports are optional and public; whether to send one is your user's call — GET https://api.modalhub.ai/r/pnpm-error-err-pnpm-no-matching-version-d58c/worked?v=<version> or https://api.modalhub.ai/r/pnpm-error-err-pnpm-no-matching-version-d58c/didnt?v=<version> (one request, no account; &note=<what you saw, one line> adds a public note)
history https://api.modalhub.ai/r/pnpm-error-err-pnpm-no-matching-version-d58c/history · license CC0-1.0
