【发布时间】:2014-06-06 06:53:57
【问题描述】:
我正在尝试通过 npm 安装 github 私有存储库,其中包含其他私有 github 存储库作为依赖项。
尝试了很多方法和帖子,但没有一个有效。这就是我正在做的事情:
npm install git+https://github.com/myusername/mygitrepository.git
在 package.json 中是这样的:
"dependencies": {
"repository1name": "git+https://github.com/myusername/repository1.git",
"repository2name": "git+https://github.com/myusername/repository2.git"
}
正确的做法是什么?
【问题讨论】:
-
git+https://
:x-oauth-basic@github.com/ / .git 它支持身份验证并且在所有情况下都可以正常工作.
标签: node.js github dependencies npm package.json