Skip to content

Environment with NODE_OPTIONS=--max-old-space-size=x installation breaks with illegal value for flag #40774

Open
@gorbinphilip

Description

@gorbinphilip

Version

v12.22.7

Platform

Linux 0031d2238124 4.14.248-189.473.amzn2.x86_64 #1 SMP Mon Sep 27 05:52:26 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Subsystem

No response

What steps will reproduce the bug?

export NODE_OPTIONS=--max-old-space-size=8192
nvm install v12

provided latest v12 release is v12.22.7, otherwise do

export NODE_OPTIONS=--max-old-space-size=8192
nvm install v12.22.7

How often does it reproduce? Is there a required condition?

Not specific. Consistent with this release version. Other version works fine.
Following passes without any failures

export NODE_OPTIONS=--max-old-space-size=8192
nvm install v12.22.6

What is the expected behavior?

Expect installation to pass

What do you see instead?

Error: illegal value for flag --max-old-space-size=8192	 of type size_t
Try --help for options
node: bad option: --max-old-space-size=8192

Additional information

Little unclear if node or nvm specific, but broken with release of v12.22.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliIssues and PRs related to the Node.js command line interface.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions