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

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

问题描述

我在 Windows 7 上使用yeoman"和bower",但在创建应用程序时出现以下错误

哟网络应用

错误是

bower 未缓存 git://github.com/jlong​​/sass-bootstrap.git#~3.0.0bower 解析 git://github.com/jlong​​/sass-bootstrap.git#~3.0.0凉亭未缓存的 git://github.com/Modernizr/Modernizr.git#~2.6.2凉亭解析 git://github.com/Modernizr/Modernizr.git#~2.6.2凉亭未缓存 git://github.com/jquery/jquery.git#~1.10.2凉亭解析 git://github.com/jquery/jquery.git#~1.10.2bower ECMDERR 无法执行git ls-remote --tags --heads git://github.com/jquery/jquery.git",退出代码#128其他错误详情:致命:无法连接到 github.com:github.com[0: 192.30.252.130]: errno=没有错误

yeoman、bower 和 node 的版本

c:yo-test> bower -v1.2.8c:yo-test>yo -version1.1.2c:yo-test>node -vv0.10.15

非常感谢任何建议.

解决方案

如果你可能遇到同样的问题...原来我的机器在防火墙后面,将无法访问 git://github.com/jquery/jquery.git

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

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

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

感谢@bnguyen82 来自无法连接到 GitHub.com 对于来自 Bower 安装仅使用 https? 的克隆和@Sindre Sorhus>

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

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.

解决方案

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

Link: Unable to Connect to GitHub.com For Cloning

The solution without changing the firewall:

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

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天全站免登陆