내용 보기

작성자

관리자 (IP : 106.247.248.10)

날짜

2025-03-05 08:53

제목

[Node.js - pnpm] pnpm 명령시 "Cannot find matching keyid" 오류 발생 해결


Error: Cannot find matching keyid: {"signatures":[{"sig":"MEUCIQC8OzFLCoQAQwmVP0rCi9pnLihViK6ifO20e6CQu337BwIgfhzo2SVsCmifbOuvXg1+3CIPBeKfrV5ibPWFI/NdBOo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"keys":[{"expires":null,"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE1Olb3zMAFFxXKHiIkQO5cJ3Yhl5i6UPp+IhuteBJbuHcA5UogKo0EWtlWwW6KSaKoTNEYL7JlCQiVnkhBktUgg=="}]}

at verifySignature (C:\Program Files\nodejs\node_modules\corepack\dist\lib\corepack.cjs:21535:47)
at fetchLatestStableVersion (C:\Program Files\nodejs\node_modules\corepack\dist\lib\corepack.cjs:21553:5)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async fetchLatestStableVersion2 (C:\Program Files\nodejs\node_modules\corepack\dist\lib\corepack.cjs:21672:14)
at async Engine.getDefaultVersion (C:\Program Files\nodejs\node_modules\corepack\dist\lib\corepack.cjs:22292:23)
at async Engine.executePackageManagerRequest (C:\Program Files\nodejs\node_modules\corepack\dist\lib\corepack.cjs:22390:47)
at async Object.runMain (C:\Program Files\nodejs\node_modules\corepack\dist\lib\corepack.cjs:23096:5)

아래 명령 실행으로 해결 되었다.

- script: corepack enable
  displayName: "Enable Corepack"

- script: corepack prepare pnpm@9.15.0 --activate
  displayName: "Corepack set PNPM version"

출처1

https://github.com/pnpm/pnpm/issues/9029

출처2