2016-03-03 28 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