[BUG] $EDITOR environment variable broken on Windows #6716
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 9.x
work is associated with a specific npm 9 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
On Windows, if the
EDITOR
environment variable is set,npm config edit
does not resolve it as either a literal path nor a shell command.Expected Behavior
I expect either:
Steps To Reproduce
EDITOR
npm config edit
EDITOR
has a space in it, it is truncated there (even if the executable is surrounded by"
, meaning you can't use a path with a space in it. None of the following work:The error message indicates that the path is truncated at the first space, e.g.
Environment
The text was updated successfully, but these errors were encountered: