-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Labels
Bugthing that needs fixingthing that needs fixingPriority 1high priority issuehigh priority issueRelease 8.xwork is associated with a specific npm 8 releasework is associated with a specific npm 8 release
Description
Is there an existing issue for this?
- I have searched the existing issues
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
mavigozler
Metadata
Metadata
Assignees
Labels
Bugthing that needs fixingthing that needs fixingPriority 1high priority issuehigh priority issueRelease 8.xwork is associated with a specific npm 8 releasework is associated with a specific npm 8 release