2014-04-01 110 views
7

我用這middleman項目,並嘗試運行的涼亭安裝並得到以下...當我運行'bower install'時,爲什麼會出現此錯誤?

bower not-cached git://github.com/jquery/jquery.git#~2.0 
bower resolve  git://github.com/jquery/jquery.git#~2.0 
bower not-cached git://github.com/appleboy/normalize.scss.git#~2.1 
bower resolve  git://github.com/appleboy/normalize.scss.git#~2.1 
bower not-cached git://github.com/Modernizr/Modernizr.git#~2.6.2 
bower resolve  git://github.com/Modernizr/Modernizr.git#~2.6.2 
bower ECMDERR  Failed to execute "git ls-remote --tags --heads git://github.com/jquery/jquery.git", exit code of #128 

Additional error details: 
fatal: unable to connect to github.com: 
github.com[0: 192.30.252.128]: errno=Connection refused 

謝謝!

+0

可能是Githubs方面的一個暫時的問題,你再試一次嗎? –

回答

10

我有一個類似的問題,並由於我的網絡有某些端口被阻止。我試過(並且工作過)是強制git使用「https」連接而不是「git」連接。希望它有幫助:

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

謝謝。謝謝。不知道這對我有多大幫助;) – ErikTheDeveloper

相關問題