Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't npm link multiple packages

Tags:

npm

npm-link

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

like image 372
Devoev Avatar asked Dec 07 '25 17:12

Devoev


1 Answers

Solved my issue using npm link A B.

like image 173
Devoev Avatar answered Dec 09 '25 19:12

Devoev