Git / Bower Errors: Exit Code # 128 & Failed connect
Solution 1:
I know this is not "fixing" the problem, but you can use
git config --global url."https://".insteadOf git://
to tell git to use HTTPS instead of GIT which worked out for me to install npm dependencies.
Solution 2:
Instead to run this command:
git ls-remote --tags --heads git://github.com/twbs/bootstrap.git
you should run this command:
git ls-remote --tags --heads [email protected]:twbs/bootstrap.git
or
git ls-remote --tags --heads https://github.com/twbs/bootstrap.git
or you can run git ls-remote --tags --heads git://github.com/twbs/bootstrap.git
but you need to make git always use https in this way:
git config --global url."https://".insteadOf git://
Reference: https://github.com/bower/bower/issues/50