【发布时间】:2013-02-02 22:46:13
【问题描述】:
在工作中,我们使用 HTTP 代理,并且 git 协议(端口 9418)被拒绝。 我的项目具有 NPM 依赖项,其中一些依赖项具有使用 git 协议的依赖项,例如:
在我的package.json
"dependencies": {
"jsdoc3" : "git+https://github.com/jsdoc3/jsdoc.git"
}
还有jsdoc3的package.json:
"dependencies": {
"crypto-browserify": "git://github.com/dominictarr/crypto-browserify.git#95c5d505",
"github-flavored-markdown": "git://github.com/hegemonic/github-flavored-markdown.git"
}
如何获取这些依赖关系,如何告诉 NPM 使用 git+https:// 协议而不是 git:// 协议或能够使用 git 协议?
为了简化我在 Windows 上的操作(在 Linux 上创建 SSH 隧道会更容易),我使用 GIT-Bash。
谢谢
【问题讨论】: