Skip to content

doc: NODE_OPTIONS description is ambiguous/confusing #28910

@reasonablytall

Description

@reasonablytall

A space-separated list of command line options. options... are interpreted as if they had been specified on the command line before the actual command line (so they can be overridden). Node.js will exit with an error if an option that is not allowed in the environment is used, such as -p or a script file.

To me that "(so they can be overridden)" part is ambiguous. Do the command line options override the environment NODE_OPTIONS, or vice versa?

I would be happy to make a quick PR myself, but I don't actually know the semantics, so I'm making this quick issue.

https://nodejs.org/api/cli.html#cli_node_options_options

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions