No response
Which area(s) of pnpm are affected? (leave empty if unsure)No response
Link to the code that reproduces this issue or a replay of the bughttps://github.com/gitkraken/vscode-gitlens/tree/e5cd2a2c4630d05ee41c0d6018c880d3f0142b80
💡 You'll notice the package.json is 18086 lines (VS Code extension life)
Reproduction stepsFrom a Mac terminal or the terminal in VS Code:
pnpm install
pnpm run build
or pnpm run lint
Running pnpm run build
produces the following error:
> gitlens@15.5.0 build /Users/keithdaulton/code/gitkraken/vscode-gitlens.worktrees/debt/pnpm > webpack --mode development node:internal/child_process:421 throw new ErrnoException(err, 'spawn'); ^ Error: spawn E2BIG at ChildProcess.spawn (node:internal/child_process:421:11) at spawn (node:child_process:762:9) at spawn (/Users/keithdaulton/.cache/node/corepack/v1/pnpm/9.10.0/dist/pnpm.cjs:83937:19) at runCmd_ (/Users/keithdaulton/.cache/node/corepack/v1/pnpm/9.10.0/dist/pnpm.cjs:103213:20) at runCmd (/Users/keithdaulton/.cache/node/corepack/v1/pnpm/9.10.0/dist/pnpm.cjs:103153:9) at runPackageLifecycle (/Users/keithdaulton/.cache/node/corepack/v1/pnpm/9.10.0/dist/pnpm.cjs:103120:7) at Array.<anonymous> (/Users/keithdaulton/.cache/node/corepack/v1/pnpm/9.10.0/dist/pnpm.cjs:102337:13) at LOOP (/Users/keithdaulton/.cache/node/corepack/v1/pnpm/9.10.0/dist/pnpm.cjs:102364:18) at chain (/Users/keithdaulton/.cache/node/corepack/v1/pnpm/9.10.0/dist/pnpm.cjs:102371:9) at lifecycle_ (/Users/keithdaulton/.cache/node/corepack/v1/pnpm/9.10.0/dist/pnpm.cjs:103094:7) { errno: -7, code: 'E2BIG', syscall: 'spawn' } Node.js v20.17.0Expected Behavior
The package scripts should run normally like when I use yarn
as I have in the past or when I use npm
now as a workaround.
When I prefix the commands with NODE_DEBUG=child_process
, I notice that envPairs
when using pnpm
has over 10,000 entries. Whereas with npm
there's only 50ish entries in envPairs
.
v20.17.0
Which operating systems have you used?No response
eamodio, axosoft-ramint and sergiolms
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4