2016-03-03 30 views
0

我靠角智威汤逊(https://github.com/auth0/angular-jwt指定协议来获取一个凉亭依赖

在我bower.json我有这样的:

"dependencies": { 
... 
    "angular-jwt": "~0.0.9" 

当我部署到詹金斯建机没有通过Git协议访问github上,我得到这个错误:排名第128

[ERROR] bower angular-jwt#~0.0.9 ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/auth0/angular-jwt.git", 

退出代码致命的:无法连接到github.com:github.com [0:192.30.252.128]:错误号= CONNEC重刑拒绝

所以有可能告诉鲍尔使用https而不是git协议? 或者明确指定存储库以获取某个依赖关系?

回答

1

您必须配置的git使用https协议,这样您的构建机器上:

git config --global url."https://".insteadOf git:// 
+0

谢谢,但在我的方面,我没有进入到本机。 – ElArbi