Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
msys2 / scoped private packages will not npm link #8874
I've been having issues linking scoped packages recently. I'm not sure if it was the upgrade to npm@3 or the other recent upgrade to msys2 (was using msysgit prior). I know msys2 / cygwin / etc. is unsupported but I'm stuck with it at work and seems like it could be a valid bug on other platforms unless I'm overlooking something.
Issue was it was throwing regarding
Here is pastebin of output from running
I was able to fix in this fork by adding a check to see if there is a private scoped module in the folder path, and if so, I run a second path.resolve to traverse up an extra level. Tested and working for me with a few different scoped package links. - master...cchamberlain:master
If this is msys2 specific I'm fine carrying on this fork since it's working for me, but if this can be of benefit I can squash the commits and cleanup the code for a pull request.