Current behavior
Executing corepack use pnpm@next-12 results in an error MODULE_NOT_FOUND
Expected behavior
Corepack should work with pnpm@12. This is however currently an Alpha release.
Steps to reproduce
On Ubuntu 24.04.4 LTS, Node.js 24.18.0 LTS, Corepack 0.35.0
rm -rf ~/.cache/node/corepack
npm uninstall pnpm -g # if previously installed globally
corepack enable pnpm
cd $(mktemp -d)
corepack use pnpm@next-12
Logs
with export DEBUG=corepack
$ rm -rf ~/.cache/node/corepack
npm uninstall pnpm -g # if previously installed globally
corepack enable pnpm
cd $(mktemp -d)
corepack use pnpm@next-12
up to date in 198ms
Installing pnpm@12.0.0-alpha.11 in the project...
corepack Installing pnpm@12.0.0-alpha.11 from https://registry.npmjs.org/pnpm/-/pnpm-12.0.0-alpha.11.tgz +0ms
corepack Downloading to /home/mike/.cache/node/corepack/v1/corepack-4919-1dff2b33.faa778 +0ms
corepack LastKnownGood file would be located at /home/mike/.cache/node/corepack/lastKnownGood.json +293ms
corepack No LastKnownGood version found in Corepack home. +2ms
corepack Download and install of pnpm@12.0.0-alpha.11 is finished +0ms
corepack Checking /tmp/tmp.cWjgFyIw1M/package.json +1ms
corepack Checking /tmp/package.json +0ms
corepack Checking /package.json +1ms
node:internal/modules/cjs/loader:1520
throw err;
^
Error: Cannot find module '/home/mike/.cache/node/corepack/v1/pnpm/12.0.0-alpha.11/bin/pnpm.mjs'
at Module._resolveFilename (node:internal/modules/cjs/loader:1517:15)
at wrapResolveFilename (node:internal/modules/cjs/loader:1071:27)
at defaultResolveImplForCJSLoading (node:internal/modules/cjs/loader:1095:10)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1122:12)
at Module._load (node:internal/modules/cjs/loader:1294:5)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at executeUserEntryPoint (node:internal/modules/run_main:154:5)
at process.processTicksAndRejections (node:internal/process/task_queues:89:21) {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v24.18.0
Current behavior
Executing
corepack use pnpm@next-12results in an errorMODULE_NOT_FOUNDExpected behavior
Corepack should work with pnpm@12. This is however currently an Alpha release.
Steps to reproduce
On Ubuntu 24.04.4 LTS, Node.js 24.18.0 LTS, Corepack 0.35.0
Logs
with
export DEBUG=corepack