Corepack "Signature verification failed" / Cannot Download - Fix in CI
By Daniel Zoghalchali·Latchkey
Corepack downloads the exact yarn/pnpm version pinned by packageManager and verifies its signature. CI failures here are usually a stale Corepack, a blocked download, or an outdated key bundle.
What this error means
Enabling or running a package manager via Corepack fails with a signature/keyid error or a failed download, before your own install even starts. Re-running on a fresh runner sometimes works, pointing at network or a stale Corepack.
Corepack output
Error: Cannot find matching keyid: {"signatures":[...]}
at verifySignature (.../corepack/dist/lib/corepack.cjs)
Internal Error: Failed to fetch the latest version of pnpm
Common causes
An outdated Corepack with a stale key set
Corepack ships signing keys; an old bundled Corepack may not recognize a newer package-manager release’s signature, producing a keyid error.
The package-manager download was blocked or flaky
Corepack fetches the binary from the registry/CDN. A proxy block or transient failure aborts the download.
How to fix it
Update Corepack, then enable
Install a current Corepack so its key bundle recognizes recent releases.
Retry the job - a flaky CDN fetch usually recovers.
Ensure the proxy allows Corepack’s download host.
Pre-cache the package-manager binary in the runner image for offline-ish CI.
How to prevent it
Keep Corepack current in CI images.
Pin packageManager for reproducible provisioning.
Allow Corepack’s download host through proxies.
Frequently asked questions
What causes "Corepack download fails"?
Corepack ships signing keys; an old bundled Corepack may not recognize a newer package-manager release’s signature, producing a keyid error.
How do I fix Corepack download fails?
Install a current Corepack so its key bundle recognizes recent releases.
Can Latchkey fix this automatically?
Yes. Latchkey runs your GitHub Actions on managed runners that detect this failure, apply the fix, and retry the job automatically - self-healing is on by default.