【问题标题】:Why do I get this error when I run 'bower install'?为什么我在运行“bower install”时会收到此错误?
【发布时间】:2014-04-01 13:33:25
【问题描述】:

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

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

谢谢!

【问题讨论】:

  • 可能是 Githubs 方面的临时问题,您重试了吗?

标签: twitter-bootstrap middleman


【解决方案1】:

我遇到了类似的问题,因为我的网络的某些端口被阻止了。我尝试(和工作)的是强制 git 使用“https”连接而不是“git”连接。希望对您有所帮助:

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

【讨论】:

  • 谢谢。谢谢你。不知道这对我有多大帮助;)
猜你喜欢
  • 2010-09-15
  • 2016-06-30
  • 1970-01-01
  • 1970-01-01
  • 2017-10-20
  • 2012-05-31
  • 2012-06-08
  • 2018-06-22
  • 2016-01-01
相关资源
最近更新 更多