Using npm link to use node modules that are "in progress"

Share this video with your friends

Send Tweet

It is some times convenient, even necessary, to make use of a module that you are working on before it has been published to the node package manager (npm). The npm link command makes this simple.

Scott
~ 6 years ago

this a great feature! Is it possible to npm link a specific branch (such as a new feature branch) from your local module that is linked? For example:


localmodle#newFeatureBranch $: npm link
project $: npm link

In this scenario, you can work on the new features for the module and test them instantly in your project.