npmnpm-link

Can't npm link multiple packages


I'm getting a weird error while linking local packages:

I have 2 packages (let's call them A and B). When I link either one of those to my project using npm link A it works as intended. But then I try to link the other one as well using npm link B and it gets linked, but the link of A is gone. I get no error message, just the following:

added 5 packages, removed 5 packages, changed 2 packages, and audited 121 packages in 5s

3 packages are looking for funding run npm fund for details

Previously this worked without any problem, but today I updated some dependencies with npm update. When I tried to relink my packages the problem occured.

Maybe it's worth mentioning that package B also links package A.

Edit: Solved it using npm link A B


Solution

  • Solved my issue using npm link A B.