问题
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