-
-
Notifications
You must be signed in to change notification settings - Fork 208
Closed
Description
Corepack assumes that a package manager executable file has ".js" extension:
https://github.com/nodejs/corepack/blob/main/mkshims.ts#L25
https://github.com/nodejs/corepack/blob/main/config.json#L37
But the latest pnpm executable file has ".cjs" extension:
$ corepack prepare --activate [email protected]
Preparing [email protected] for immediate activation...
$ pnpm
node:internal/modules/cjs/loader:944
throw err;
^
Error: Cannot find module '/Users/ykoma/.node/corepack/pnpm/6.3.0/bin/pnpm.js'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:941:15)
at Function.Module._load (node:internal/modules/cjs/loader:774:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
arcanis and shisama
Metadata
Metadata
Assignees
Labels
No labels