How to install a fork from github as a dependency?

2019-07-13 05:14发布

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?

标签: npm
1条回答
放我归山
2楼-- · 2019-07-13 06:05

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.

查看更多
登录 后发表回答