Bower ECMDERR - other solutions not working

荒凉一梦 提交于 2019-12-11 12:14:44

问题


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://

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.

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

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?


回答1:


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.

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.



来源:https://stackoverflow.com/questions/23660675/bower-ecmderr-other-solutions-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!