[BUG] npm link
fails when running inside path with hash tag #
#5120
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 working inside path that includes hash character (
#
), usingnpm link
causes to crash because it cuts the path at the hash. My guess it's because it handles it as URI, just withfile://
schema, and even those have#
used as hash fragment.Under Windows:
The complete log of
npm link
:Expected Behavior
Expected behaviour would be
npm link
just working as usual, creating link in global packages directory.Steps To Reproduce
#
).npm init
.npm link
(with admin privileges under Windows, as creating links sometimes requires those).Environment
8.13.2
v16.13.1
Microsoft Windows 10 Home 10.0.19043 N/A Build 19043
GS65 Stealth 8SE
The text was updated successfully, but these errors were encountered: