I am facing this issue in my ubuntu system, node version is 5.0.0 , bower version is 1.7.9
i am able to access github so there is no network problem and i am not using any proxy, and using https:// only. But still it is saying
ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/angular/bower-angular-route.git", exit code of #128 fatal: unable to access 'https://github.com/angular/bower-angular-route.git/': Could not resolve host: github.com
Additional error details:
fatal: unable to access 'https://github.com/angular/bower-angular-route.git/': Could not resolve host: github.com
if i run "git ls-remote --tags --heads https://github.com/angular/bower-angular-route.git" from command line it give valid output.
Can you paste your bower.json file? I was able to install that library via:
bower install https://github.com/angular/bower-angular-route.git
If you don't need a proxy, is there a chance you're running this in a VM?
I also came across this error which I was able to solve with this:
git config --global url.git://github.com/.insteadOf https://github.com/
Hope that helps!
what is your git version?
2.7.4
Have the same issue
CentOS 6.8
Bower version: 1.7.9
Node version: 5.2.0
git 1.7.1
@awoerner92 answer helped me
@sheerun Git version is 1.9.1 node version is 5.4.0 bower version is 1.7.9 , OS is ubuntu 14. This error is occurring in every package, some time it says access to github failed some time it says access to herokuapp failed. i am not able to install even a single package,
Most likely it's your internet connection or old git version..
Quite an old thread, but if you've read down to here then you've likely not found a solution. Thought I'd try and help out.
For me, the error was incompatible/out-of-date versions of git. Try updating your git version and see if that helps. Removing the security of HTTPS seems like a risky workaround.
Try with this line
git config --global https.proxy http://3.28.29.241:88
This will solve the above fatal error
Try with this line
git config --global https.proxy http://3.28.29.241:88
This will solve the above fatal error
Thank for this observation...
I config wrong my proxy in git
fatal: unable to access 'https://github.com/attainu/saurabh-dongre-au25.git/': Could not resolve host: github.com
Most helpful comment
I also came across this error which I was able to solve with this:
git config --global url.git://github.com/.insteadOf https://github.com/Hope that helps!