为什么我在运行' bower install'?时会出现此错误?

时间:2014-04-01 13:33:25

标签: twitter-bootstrap middleman

我正在使用这个middleman项目并试图运行bower安装并获得以下内容......

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

谢谢!

1 个答案:

答案 0 :(得分:10)

我有一个类似的问题,并且由于我的网络阻止了某些端口。我尝试(和工作)的是强迫git使用“https”连接而不是“git”连接。希望它有所帮助:

git config --global url."https://".insteadOf git://
相关问题