next-learn icon indicating copy to clipboard operation
next-learn copied to clipboard

Chapter 1: install with pnpm

Open jujax opened this issue 9 months ago • 0 comments

Hi, I got this error when I try to install dashboard example with corepack enabled: $ npx create-next-app@latest nextjs-dashboard --example "https://github.com/vercel/next-learn/tree/main/dashboard/starter-example" --use-pnpm $ pnpm install

/Users/julien/.nvm/versions/node/v20.18.2/lib/node_modules/corepack/dist/lib/corepack.cjs:21535 if (key == null || signature == null) throw new Error(Cannot find matching keyid: ${JSON.stringify({ signatures, keys })}); ^

Error: Cannot find matching keyid: {"signatures":[...],"keys":[...}]} at verifySignature (/Users/julien/.nvm/versions/node/v20.18.2/lib/node_modules/corepack/dist/lib/corepack.cjs:21535:47) at fetchLatestStableVersion (/Users/julien/.nvm/versions/node/v20.18.2/lib/node_modules/corepack/dist/lib/corepack.cjs:21553:5) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async fetchLatestStableVersion2 (/Users/julien/.nvm/versions/node/v20.18.2/lib/node_modules/corepack/dist/lib/corepack.cjs:21672:14) at async Engine.getDefaultVersion (/Users/julien/.nvm/versions/node/v20.18.2/lib/node_modules/corepack/dist/lib/corepack.cjs:22292:23) at async Engine.executePackageManagerRequest (/Users/julien/.nvm/versions/node/v20.18.2/lib/node_modules/corepack/dist/lib/corepack.cjs:22390:47) at async Object.runMain (/Users/julien/.nvm/versions/node/v20.18.2/lib/node_modules/corepack/dist/lib/corepack.cjs:23096:5)

Node.js v20.18.2

The only solution I found is to disable corepack with $ corepack disable

jujax avatar Feb 28 '25 08:02 jujax