[BUG] npm config set ignores values starting with "-" #5131
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 8.x
work is associated with a specific npm 8 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
When
npm config set
is provided with value that starts with "-", it ignores this value and sets an empty string instead.This is a serious issue for us, as some tokens can generate starting with "-".
Bug case:
Expected Behavior
Instead, it should just set the provided value.
Expected:
That's the way it works with all other values.
Steps To Reproduce
Works the same with basically any npm version.
Run:
Outputs
foo = ""
Environment
The text was updated successfully, but these errors were encountered: