如何修复凉亭ECMDERR [英] How to fix bower ECMDERR

查看:157
本文介绍了如何修复凉亭ECMDERR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 7上使用yeoman和bower,但在创建应用程序时遇到以下错误:

I'm using "yeoman" and "bower" on windows 7 but got the following error when I create the app

yo webapp

错误是

The error is

bower not-cached    git://github.com/jlong/sass-bootstrap.git#~3.0.0
bower resolve       git://github.com/jlong/sass-bootstrap.git#~3.0.0
bower not-cached    git://github.com/Modernizr/Modernizr.git#~2.6.2
bower resolve       git://github.com/Modernizr/Modernizr.git#~2.6.2
bower not-cached    git://github.com/jquery/jquery.git#~1.10.2
bower resolve       git://github.com/jquery/jquery.git#~1.10.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.130]: errno=No error

yeoman,bower和node的版本

The version of the yeoman, bower and node

c:\yo-test>bower -v
1.2.8

c:\yo-test>yo -version
1.1.2

c:\yo-test>node -v
v0.10.15



任何建议都非常感谢。

Any suggestion is much appreciated.

推荐答案

如果您可能遇到同样的问题......原来我的机器位于防火墙之后,无法访问 git://github.com/jquery/jquery.git

In case you might encounter the same issue...It turns out my machine behind firewall, that won't able to access git://github.com/jquery/jquery.git

链接:无法连接到GitHub.com进行克隆

不改变防火墙的解决方案:

The solution without changing the firewall:

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

感谢来自无法连接到GitHub.com进行克隆和@Sindre Sorhus Bower只使用https安装?

Credit to @bnguyen82 from Unable to Connect to GitHub.com For Cloning and @Sindre Sorhus from Bower install using only https?

这篇关于如何修复凉亭ECMDERR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆