pnpm: failed to run
After commit 78beafbc, running pnpm
commands fails with the below error. I'm using nodejs
package (it also fails with nodejs-current
) on edge without npm
installed.
node:internal/modules/cjs/loader:1077
const err = new Error(message);
^
Error: Cannot find module 'node-gyp/bin/node-gyp.js'
Require stack:
- /usr/share/node_modules/pnpm/dist/pnpm.cjs
- /usr/share/node_modules/pnpm/bin/pnpm.cjs
at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
at Function.resolve (node:internal/modules/cjs/helpers:125:19)
at ../node_modules/.pnpm/@npmcli+run-script@7.0.2/node_modules/@npmcli/run-script/lib/make-spawn-args.js (/usr/share/node_modules/pnpm/dist/pnpm.cjs:136027:39)
at __require (/usr/share/node_modules/pnpm/dist/pnpm.cjs:12:50)
at ../node_modules/.pnpm/@npmcli+run-script@7.0.2/node_modules/@npmcli/run-script/lib/run-script-pkg.js (/usr/share/node_modules/pnpm/dist/pnpm.cjs:136375:25)
at __require (/usr/share/node_modules/pnpm/dist/pnpm.cjs:12:50)
at ../node_modules/.pnpm/@npmcli+run-script@7.0.2/node_modules/@npmcli/run-script/lib/run-script.js (/usr/share/node_modules/pnpm/dist/pnpm.cjs:136514:24)
at __require (/usr/share/node_modules/pnpm/dist/pnpm.cjs:12:50)
at ../node_modules/.pnpm/pacote@17.0.4/node_modules/pacote/lib/dir.js (/usr/share/node_modules/pnpm/dist/pnpm.cjs:136538:21)
at __require (/usr/share/node_modules/pnpm/dist/pnpm.cjs:12:50) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/usr/share/node_modules/pnpm/dist/pnpm.cjs',
'/usr/share/node_modules/pnpm/bin/pnpm.cjs'
]
}
Node.js v18.18.2