[BUG] npm link confused by symlinks (windows) #2828
Labels
Bug
thing that needs fixing
platform:windows
is Windows-specific
Priority 2
secondary priority issue
Release 7.x
work is associated with a specific npm 7 release
Current Behavior:
I am creating a
npm link
to a package I am creating, andnpm link
creates a link to the wrong location.Expected Behavior:
Create a link to the correct folder.
Steps To Reproduce:
Environment:
c:\code
toc:\Users\WORMSS\code
< because I am lazy and don't want to type the full path all the timec:\\program files\\nodejs
c:\Users\WORMSS\code\@wormss\genstack
c:\program files\node
toc:\Users\WORMSS\AppData\Roaming\nvm\v15.9.0
< because that is where nvm installs the versions but NVM isn't required to setup the symlinkSteps:
c:\code\@wormss\genstack
(note, the shortcut of c:\code, not the full path through users)npm link
< this makes genstack in globalc:\users\WORMSS\AppData\Roaming\code\@wormss\genstack
instead ofc:\code\@wormss\genstack
Environment:
OS: Windows 10
Node: 15.9.0
npm: 7.5.3
My thoughts (though I know nothing about what it is trying to do internally)
c:\code
with\code
o..\..\
to get fromc:\program files\nodejs
toc:\
but mistakenly it taken it toc:\users\WORMSS\AppData\Roaming
instead?c:\Users\WORMSS\AppData\Roaming\Code
VSCode
, but maybe npm is testing..\..\code
thinking it's testingc:\code
but is actually hittingc:\Users\WORMSS\AppData\Roaming\Code
and passing a test?? Maybe? no idea..The text was updated successfully, but these errors were encountered: