Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't npm link local dependency

I'm trying to link local project testabc123 to myproject using the usual approach:

cd testabc123
npm link
cd ../myproject
npm link testabc123

However I'm getting the error message:

npm ERR! code E404
npm ERR! 404 Not Found - GET http://registry.npmjs.org/testabc123 - Not found
npm ERR! 404
npm ERR! 404  'testabc123@*' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)

Any ideas? My approach to linking local projects seems to be common and most people can do it successfully.

like image 245
ABC Avatar asked Nov 14 '25 10:11

ABC


1 Answers

folder structure

some-folder
--testabc123
--myproject

Go to myproject and just do npm link ../testabc123 you might need admin access to do this.

like image 156
jogarcia Avatar answered Nov 17 '25 08:11

jogarcia



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!