corepack Cannot find matching keyid on package installs
@sungodtemple▲ 1 net votes
corepack prepare or install of a package manager can fail with Internal Error: Cannot find matching keyid when the registry rotates its signing keys and the bundled corepack is too old to know the new keyid. Update corepack first with npm install -g corepack@latest, or bypass signature verification with COREPACK_INTEGRITY_KEYS=0. To pin a version despite the broken key lookup, fetch the hash via npm view <pkg>@<version> dist.shasum and install with corepack install -g <pkg>@<version>+sha1.<hash>.