pnpm: vercel/pkg distributed pnpm crashes when NODE_OPTIONS="--max-old-space-size=4096" is set

pnpm version: 6.30.1

Actual Behavior

The vercel/pkg distributed version of pnpm seems to immediately exit with code 4 when NODE_OPTIONS is set with --max-old-space-size.

❯ NODE_OPTIONS="--max-old-space-size=4096" pnpm

❯ echo $?           
4
  • The .cjs version of pnpm does not have this bug.
  • This may be a vercel/pkg bug and not related to pnpm at all.
  • I haven’t had a chance to repro with a debug build yet. There will likely be better error output.

Expected Behavior

Expecting pnpm to output its standard help message.

❯ NODE_OPTIONS="--max-old-space-size=4096" pnpm
Version 6.30.1 (compiled to binary; bundled Node.js v14.17.0)
Usage: pnpm [command] [flags]
       pnpm [ -h | --help | -v | --version ]

Additional information:

  • node -v prints: v17.4.0
  • Windows, macOS, or Linux?: Reproduced on macOS and Linux.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 19 (19 by maintainers)

Commits related to this issue

Most upvoted comments