npx
used to have a --node-arg
option to specify options for node. In npm v7, this results in:
npx: the --n argument has been removed.
See `npm help exec` for more information
Which states:
The --node-arg and -n options are removed.
Without any information being supplied about their replacement. This is not helpful.
I have tried using --
. For example to run npx jest -t 'API work'
with a node option of -r
:
npx -r dotenv/config dotenv_config_path=/home/mike/Code/myapp/.env.local -- jest -t 'API works'
However this doesn't do anything.
--node-options
instead. – Leija