pnpm.io icon indicating copy to clipboard operation
pnpm.io copied to clipboard

Missing update of Corepack?

Open Kingju777 opened this issue 10 months ago • 1 comments

i have used https://pnpm.io/next/continuous-integration#azure-pipelines to create my Pipelines but i now get the error Internal Error: Cannot find matching keyid: . The pipeline was approximately 10 days old when the error occurred.

i have found that the following change fixes the issue (from https://stackoverflow.com/questions/79411275/after-heroku-restart-pnpm-error-cannot-find-matching-keyid)

original

- script: |
    corepack enable
    corepack prepare pnpm@latest-10 --activate
    pnpm config set store-dir $(pnpm_config_cache)
  displayName: "Setup pnpm"

fix

- script: |
    npm install -g corepack@latest
    corepack enable
    corepack prepare pnpm@latest-10 --activate
    pnpm config set store-dir $(pnpm_config_cache)
  displayName: "Setup pnpm"

Q: Is this even the correct fix?

Kingju777 avatar Feb 06 '25 10:02 Kingju777

This is one possible fix. The second option is to disable the integrity check.

zkochan avatar Feb 06 '25 20:02 zkochan

@Kingju777

This is a bit late, but now all supported versions of Node.js include a version of Corepack (minimum 0.31.0) which has been fixed, so you shouldn't need a workaround anymore.

MikeMcC399 avatar Apr 11 '25 15:04 MikeMcC399