A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pnpm/pnpm/issues/8552 below:

spawn E2BIG on large package.json files · Issue #8552 · pnpm/pnpm · GitHub

Verify latest release pnpm version

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 bug

https://github.com/gitkraken/vscode-gitlens/tree/e5cd2a2c4630d05ee41c0d6018c880d3f0142b80

💡 You'll notice the package.json is 18086 lines (VS Code extension life)

Reproduction steps

From a Mac terminal or the terminal in VS Code:

Describe the Bug

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.0
Expected 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.

Which Node.js version are you using?

v20.17.0

Which operating systems have you used? If your OS is a Linux based, which one it is? (Include the version if relevant)

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