-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node 20.6+ --env-file
flag in NODE_OPTIONS
is not allowed
#1096
Comments
--env-file
flag in NODE_OPTIONS
is not allowed
I assume that you are trying to set environment variables. If so, can you use the For example, the following would show trace information for your deprecation warning: env:
NODE_OPTIONS: '--trace-deprecation' If that doesn't solve your issue, please post your workflow here. |
@MikeMcC399 the issue is that it is already being picked up by the
So your suggestion will only try to set the variable somewhere else, but the error will remain. The workflow details won't matter here. |
According to your error message and the documentation https://nodejs.org/docs/latest-v20.x/api/cli.html#node_optionsoptions, What are your expectations from |
If
then executing a command such as npx cypress version results in the error message
so this confirms that it is not a legal configuration. Also the documentation for .npmrc > node-options states
At this time I do not see any bug in |
Sorry @MikeMcC399, it seems you are indeed correct. I'll close the issue, hopefully the Node.JS team can support this use case in the future. |
I'm not entirely sure why this happens since
cypress-io/github-action@v6
is using Node 20, but I am getting this error.Any idea why? I wanted to get rid of dotenv all together, so I was trying to set
--env-file
in my.npmrc
. This obviously works across the board as of20.6
, with this action being the except 😕The text was updated successfully, but these errors were encountered: