-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[BUG] npm config set [key] [value] modifies values of other [key]s #2072
Comments
npm If your bug is preproducible on If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo Closing: This is an automated message. |
1 similar comment
npm If your bug is preproducible on If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo Closing: This is an automated message. |
Current Behavior:
When using
npm config set
, npm sometimes modifies previously set values in the .npmrc not specified in the call, such as environment variable names.Expected Behavior:
Running
npm config set [key] [value]
should only modify the value of[key]
in the .npmrc.Steps To Reproduce:
Observe the following commands in a Windows 10 command prompt with environment variables CUSTOM_ENV_ONE and CUSTOM_ENV_TWO. The .npmrc is empty to begin with.
Notice how blah1 was changed from ${CUSTOM_ENV_ONE} to 1234 on the
npm config set blah2 ${CUSTOM_ENV_TWO}
call. This looks like a bug.Environment:
The text was updated successfully, but these errors were encountered: