【发布时间】:2016-03-03 09:05:30
【问题描述】:
我依赖 angular-jwt (https://github.com/auth0/angular-jwt)
在我的 bower.json 中有这个:
"dependencies": {
...
"angular-jwt": "~0.0.9"
当我部署到无法通过 git 协议访问 github 的 Jenkins 构建机器时,我收到此错误:
[ERROR] bower angular-jwt#~0.0.9 ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/auth0/angular-jwt.git",
#128 的退出代码致命:无法连接到 github.com: github.com[0: 192.30.252.128]: errno=Connection denied
那么是否可以告诉 Bower 使用 https 而不是 git 协议? 或者明确指定要获取某个依赖项的存储库?
【问题讨论】:
标签: angularjs git jenkins bower jwt