2014-04-01 217 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

相关问题