如何修理割草机ECMDERR

leo*_*eoh 123 github windows-firewall yeoman bower

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

yo webapp
Run Code Online (Sandbox Code Playgroud)

错误是

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
Run Code Online (Sandbox Code Playgroud)

自耕农,凉亭和节点的版本

c:\yo-test>bower -v
1.2.8

c:\yo-test>yo -version
1.1.2

c:\yo-test>node -v
v0.10.15
Run Code Online (Sandbox Code Playgroud)

任何建议都非常感谢.

leo*_*eoh 424

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

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

解决方案无需更改防火墙:

git config --global url."https://".insteadOf git://
Run Code Online (Sandbox Code Playgroud)

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

  • 这还有其他副作用吗? (7认同)
  • "**ssh和https都是等价的**,因为Git 1.6.6 +(2010)和智能http协议的实现"@VonC在http://stackoverflow.com/questions/3248779/which-is-faster回答-ssh-或-git的协议 (4认同)

ror*_*_57 26

我有同样的问题,上面的答案对我不起作用.但我发现了另一个.您的代理可能有问题.如果您在代理服务器后面,则必须执行以下步骤:

把它放在.bowerrc中以摆脱错误的ETIMEDOUT:

{
    "directory": "app/bower_components",
    "proxy": "http://PROXYSERVER:PORT",
    "https-proxy": "https://PROXYSERVER:PORT",
    "strict-ssl": false
}
Run Code Online (Sandbox Code Playgroud)

而这一个摆脱ECMDERR:

git config --global http.proxy http://USER:PASSWORD@PROXYSERVER:PORT
Run Code Online (Sandbox Code Playgroud)

这个对我有用.

PS:对不起我的英语错误我是法国人^^


Man*_*kar 10

以下命令适合我

npm缓存清理

凉亭缓存干净

然后

凉亭安装


Jan*_*här 9

对我来说,将git更新到最新版本有帮助.