A few days ago, I was trying to clone the angular-seed git repository https://github.com/angular/angular-seed. Then I’d use bower to install realated libs with:
$ bower install
But, I was getting the following error, in gitbash:
Additional error details: fatal: unable to connect to github.com: github.com[0: 126.96.36.199]: errno=No such file or directory
After some research, and reading the logs, I’ve found that bower coudn’t execute some commands because Git was using url’s with git:// to fetch some repositories, and I was behind the firewall of the company I work.
To solve this, we need to configure Git to use HTTPS protocol instead the GIT transport, so bower can fetch dependencies:
$ git config --global url."https://".insteadOf git://
It’s weird, but it works.
After this, all url’s will use https:// to find the address. This is useful when you’re under a proxy in your company, or a firewall, for example.