Skip to content

Cannot install pnpm with corepack: corepack use pnpm@latest-x  #9029

@fuxingloh

Description

@fuxingloh

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

9.15.3, 9.15.5

Possibly all versions of pnpm installed via corepack.

Which area(s) of pnpm are affected? (leave empty if unsure)

CLI

Link to the code that reproduces this issue or a replay of the bug

Reproduction steps

This applies to both CI and local environment, fail at run: pnpm install

jobs:
  Build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version-file: ".nvmrc"

      - run: corepack enable pnpm

      # Fail here
      - run: pnpm install

Describe the Bug

Error message:

Run pnpm install
  pnpm install
  shell: /usr/bin/bash -e {0}
/opt/hostedtoolcache/node/[2](https://github.com/user/user-app/actions/runs/13104702477/job/36557589587?pr=379#step:6:2)0.18.2/x64/lib/node_modules/corepack/dist/lib/corepack.cjs:215[3](https://github.com/user/user-app/actions/runs/13104702477/job/36557589587?pr=379#step:6:3)5
  if (key == null || signature == null) throw new Error(`Cannot find matching keyid: ${JSON.stringify({ signatures, keys })}`);
                                              ^

Error: Cannot find matching keyid:

It works before the recent release. I'm assuming 9.15.5 broke something?

Expected Behavior

Expect to download and run pnpm install:

Corepack is about to download https://registry.npmjs.org/pnpm/-/pnpm-9.15.3.tgz

Which Node.js version are you using?

v20.18.2

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions