You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
'corepack use pnpm' installs faulty pnpm@11.0.0-dev.1005 resulting in MODULE_NOT_FOUND #772
When running corepack use pnpm without specifying a version, Corepack attempts to install a development build, pnpm@11.0.0-dev.1005 which is faulty-ish? and results in a MODULE_NOT_FOUND error.
I think corepack is incorrectly selecting this unstable dev tag as the latest version when no version is provided?
I expected corepack to select and install the latest stable version by default, rather than an unstable development build.
After some discussion on the pnpm issue (pnpm/pnpm#10214), it turns out the problem is not caused by a faulty pnpm release, pnpm v11 has changed its binary entry path from bin/pnpm.cjs to bin/pnpm.mjs., so the development build 11.0.0-dev.1005 is not faulty. Corepack is expecting the old path and fails.
So the issue appears to be:
Corepack’s version resolution prefers a dev build over the latest stable
Corepack seems to rely on a hardcoded pnpm binary path instead of reading the correct bin path from package.json.
As a workaround I'm currently using corepack use pnpm@10.22.0 or corepack use pnpm@latest (or latest-9, latest-10 etc.)
Leaving this update here so the root cause is clearer.
Activity
tkesici commentedon Nov 24, 2025
After some discussion on the pnpm issue (pnpm/pnpm#10214), it turns out the problem is not caused by a faulty pnpm release, pnpm v11 has changed its binary entry path from bin/pnpm.cjs to bin/pnpm.mjs., so the development build 11.0.0-dev.1005 is not faulty. Corepack is expecting the old path and fails.
So the issue appears to be:
As a workaround I'm currently using
corepack use pnpm@10.22.0orcorepack use pnpm@latest(or latest-9, latest-10 etc.)Leaving this update here so the root cause is clearer.
tkesici commentedon Nov 24, 2025
Closing this issue since the root causes are now split into two issues: