How to fix bower ECMDERR
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?
I had the same problem and the answer above didn't work for me. But I found an other one. You can have a problem with your proxy. If you are behind a proxy you have to do theses steps :
put this in .bowerrc to get rid of the err ETIMEDOUT :
{
"directory": "app/bower_components",
"proxy": "http://PROXYSERVER:PORT",
"https-proxy": "https://PROXYSERVER:PORT",
"strict-ssl": false
}
And this one to get rid of ECMDERR :
git config --global http.proxy http://USER:PASSWORD@PROXYSERVER:PORT
it works for me.
Following commands work for me
npm cache clean
bower cache clean
and then
bower install