FS#80095 - pnpm 8.10.0 failed to run without node-gyp
Attached to Project:
Arch Linux
Opened by Hu Zhangzhi (Integral) - Saturday, 28 October 2023, 08:42 GMT
Last edited by Daniel M. Capella (polyzen) - Saturday, 28 October 2023, 19:27 GMT
Opened by Hu Zhangzhi (Integral) - Saturday, 28 October 2023, 08:42 GMT
Last edited by Daniel M. Capella (polyzen) - Saturday, 28 October 2023, 19:27 GMT
|
Details
Description:
After the upgrade of pnpm, it failed to run without node-gyp. Additional info: * pnpm 8.10.0-1 * Error Log node:internal/modules/cjs/loader:1048 const err = new Error(message); ^ Error: Cannot find module 'node-gyp/bin/node-gyp.js' Require stack: - /usr/lib/node_modules/pnpm/dist/pnpm.cjs - /usr/lib/node_modules/pnpm/bin/pnpm.cjs at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15) at Function.resolve (node:internal/modules/helpers:136:19) at ../node_modules/.pnpm/@npmcli+run-script@7.0.1/node_modules/@npmcli/run-script/lib/make-spawn-args.js (/usr/lib/node_modules/pnpm/dist/pnpm.cjs:136003:39) at __require (/usr/lib/node_modules/pnpm/dist/pnpm.cjs:12:50) at ../node_modules/.pnpm/@npmcli+run-script@7.0.1/node_modules/@npmcli/run-script/lib/run-script-pkg.js (/usr/lib/node_modules/pnpm/dist/pnpm.cjs:136351:25) at __require (/usr/lib/node_modules/pnpm/dist/pnpm.cjs:12:50) at ../node_modules/.pnpm/@npmcli+run-script@7.0.1/node_modules/@npmcli/run-script/lib/run-script.js (/usr/lib/node_modules/pnpm/dist/pnpm.cjs:136490:24) at __require (/usr/lib/node_modules/pnpm/dist/pnpm.cjs:12:50) at ../node_modules/.pnpm/pacote@17.0.4/node_modules/pacote/lib/dir.js (/usr/lib/node_modules/pnpm/dist/pnpm.cjs:136514:21) at __require (/usr/lib/node_modules/pnpm/dist/pnpm.cjs:12:50) { code: 'MODULE_NOT_FOUND', requireStack: [ '/usr/lib/node_modules/pnpm/dist/pnpm.cjs', '/usr/lib/node_modules/pnpm/bin/pnpm.cjs' ] } Node.js v20.9.0 Steps to reproduce: 1. Upgrade pnpm to the latest version (8.10.0-1) 2. Run pnpm 3. It failed to run Note: After installing node-gyp, pnpm works. |
This task depends upon
Closed by Daniel M. Capella (polyzen)
Saturday, 28 October 2023, 19:27 GMT
Reason for closing: Fixed
Additional comments about closing: 8.10.0-2
Saturday, 28 October 2023, 19:27 GMT
Reason for closing: Fixed
Additional comments about closing: 8.10.0-2