我已经创建了一个存储库的fork,我需要使用该fork作为我项目的依赖项。
现在我做:
npm install angular --save
如何更改此设置以安装分叉?
答案 0 :(得分:6)
来自NPM documentation for the install command:
npm install <git remote url>
从托管的git提供程序安装软件包,使用git克隆它。首先,它通过https(git with github)尝试,如果失败,则通过ssh。