Skip to content

Commit

Permalink
npx.md: give alternative to --node-arg since it was removed (#7111)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanKaplanSES committed Jan 3, 2024
1 parent 559a9ee commit 5e005ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/lib/content/commands/npx.md
Expand Up @@ -145,7 +145,8 @@ This resulted in some shifts in its functionality:
always present in the executed process `PATH`.
- The `--npm` option is removed. `npx` will always use the `npm` it ships
with.
- The `--node-arg` and `-n` options are removed.
- The `--node-arg` and `-n` options have been removed. Use [`NODE_OPTIONS`](https://nodejs.org/api/cli.html#node_optionsoptions) instead: e.g.,
`NODE_OPTIONS="--trace-warnings --trace-exit" npx foo --random=true`
- The `--always-spawn` option is redundant, and thus removed.
- The `--shell` option is replaced with `--script-shell`, but maintained
in the `npx` executable for backwards compatibility.
Expand Down

0 comments on commit 5e005ec

Please sign in to comment.