HOW AND WHEN TO USE npm link

preview_player
Показать описание
For when you want to develop on one javascript repository, and use that local development build in another javascript repository. Using npm link removes the need to publish your changes before being able to import them.
Рекомендации по теме
Комментарии
Автор

Great video!!! nothing else needed to understand the basics of npm link.

TanyAlej
Автор

Thank you for such a simple, yet complete, explanation. This actually was very helpful to answer a few questions I still had about the usage, manly about the ability to make changes on a previously imported library. Cheers!

jalcarias
Автор

I had problem but fixed it by watching this video. Thanks.

gutsnxr
Автор

Really helpful and well explained, I was getting mad by linking my components library after any modification instead of understanding how to live reload :D

oscarjesusresendiz
Автор

Excellent video! very well explained (y)

rdandnayak
Автор

Great vid man, exactly what I needed!

eoin
Автор

Very useful. I was stuck with this for a while and you helped me a lot. Are you able to debug your linked component? If that, how do you do it?

alanaranda
Автор

Thank you for this video. However I get errors when trying to access this components from my other projects. Can I get a link to your rollup file??. I think that's where the issue is coming from

codeinten
Автор

Very insightfull video. It's a little bit hard to say what project you are currently in. Maybe an indicative label should do.

cryptonative
Автор

What is the diff between npm i --save ../shared/module and npm link?

opendojo
Автор

Cool. How do you "unlink" again once you want to use the actual package again?

jonasellehauge
Автор

I though using "sudo" was bad practice...

ganondorf