How to install a fork from github as a dependency?

2019-07-13 05:46发布

问题:

I've made a fork of some repository and I need to use that fork as a dependency for my project.

Right now I do:

 npm install angular --save

How do I change this to install a fork?

回答1:

From the NPM documentation for the install command:

npm install <git remote url>

Installs the package from the hosted git provider, cloning it with git. First it tries via the https (git with github) and if that fails, via ssh.



标签: npm