Bower ECMDERR-其他解决方案不起作用 [英] Bower ECMDERR - other solutions not working

查看:225
本文介绍了Bower ECMDERR-其他解决方案不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows 8.1机器上运行bower安装,并且一旦它尝试git它以退出代码128退出的第一个文件被混合。我已经尝试了以下方法,如其他SO线程中所建议的那样:

I'm trying to run bower install on a Windows 8.1 machine, and as soon as it tries to git the first file it dies with exit code 128. I have tried the following, as suggested in other SO threads:

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

在Windows防火墙中,通常为端口22,端口9418和git.exe添加入站规则,并为其添加出站规则,并将其完全关闭。

In Windows Firewall, adding inbound rules for port 22, port 9418, and git.exe in general, and outbound rules for the same, as well as turning it off entirely.

删除c:\users\username\AppData\Roaming\bower\cache

Deleting c:\users\username\AppData\Roaming\bower\cache

唯一的事情我发现可以工作的是手动运行 git ls-remote --tags --heads git@github.com:path / to.git ,但是我要每次都在每个文件上执行此操作,这将非常繁琐,而且实际上不是解决方案。有人还有其他功能吗?例如,是否有一种方法可以更改Bower拉文件的方式以将路径重写为有效的路径?

The only thing I've found that can work is to manually run git ls-remote --tags --heads git@github.com:path/to.git but I'll have to do that on every single file every single time, and that's going to be incredibly tedious and is not actually a solution. Anyone have anything more functional? Is there, for instance, a way to change how bower pulls files to rewrite the path to the one that works?

推荐答案

似乎问题是我必须重新安装msysgit才能允许命令提示符git,而不仅仅是git bash git,这是Windows用户在github.com/bower/bower上的注释-Bower现在已经为我成功安装了文件。

Seems the problem is that I had to reinstall msysgit to allow command prompt git, not just git bash git, as per the note for Windows users at github.com/bower/bower - bower has now successfully installed my files for me.

因此,对于将来可能遇到相同问题的其他任何人,请确保在安装msysgit时选择了正确的选项;它将为您节省一些头痛。

So for anyone else who might encounter the same problem in the future, make sure you selected the correct option when installing msysgit; it will save you some headaches.

这篇关于Bower ECMDERR-其他解决方案不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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