Is there an existing issue for this?
Current Behavior
Using npm help ls throws on windows (because it is an invalid url, because it encodes backslashes):
npm ERR! Invalid URL: file://C:%5CUsers%5Clucas%5CAppData%5CRoaming%5Cnpm%5Cnode_modules%5Cnpm%5Cdocs%5Coutput%5Ccommands%5Cnpm-ls.html
Expected Behavior
It should produce and open a valid url with
- either non-encoded backslashes
- or forward slashes for file:// urls (since firefox and chrome normalise to that anyway).
Steps To Reproduce
- Run
npm help ls on Windows
- See error about an invalid url as seen above.
Environment
- OS: Windows 11
- Node: 17.0.1
- npm: 8.1.1
Is there an existing issue for this?
Current Behavior
Using
npm help lsthrows on windows (because it is an invalid url, because it encodes backslashes):Expected Behavior
It should produce and open a valid url with
Steps To Reproduce
npm help lson WindowsEnvironment