再安装就可以了: 代码语言:javascript 复制 !❯ pnpm i electron-D../../..|+343+++++++++++++++++++../../..|Progress:resolved398,reused355,downloaded0,added0,done../../../node_modules/.pnpm/electron@26.1.0/node_modules/electron:Running postinstall script,donein18.5s Donein22.6s ...
build@0.21.5/node_modules/esbuild: Running postinstall script, done in 150ms node_modules/.pnpm/esbuild@0.18.20/node_modules/esbuild: Running postinstall script, done in 1.5s node_modules/.pnpm/esbuild@0.19.12/node_modules/esbuild: Running postinstall script, done in 1.4s electron ...
reused 2276, downloaded 1, added 2277, done node_modules/.pnpm/core-js-pure@3.12.0/node_modules/core-js-pure: Running postinstall script, done in 77ms node_modules/.pnpm/core-js@3.8.3/node_modules/core-js: Running postinstall script, done in ...
No, in my case no postinstall. Just regular bin file that not referenced in postinstall script. You can find example in electron-userland/electron-builder#5710 (branch tsc-pnpm). "electron-builder": "./out/cli/cli.js", "install-app-deps": "./out/cli/install-app-deps.js" As workaro...