bower install 报错fatal: unable to access 'https://github.com/angular/bower-angular-touch.git/'类错误解决方法

bower install时出现很多unable to access 'https://github.com/angular/bower-angular-touch.git/'类似的错误,

方法一:(单个)

开始我一个一个解决,把https换成了git

例子如下:

git config --global url."git://github.com/angular/bower-angular-touch.git/".insteadOf https://github.com/angular/bower-angular-touch.git/

执行之后继续执行

bower install

但是类似的错误太多了,一个一个替换太麻烦,来个批量的

方法二:(批量)

如下:

git config --global url."git://".insteadOf https://

执行之后再次(一次不行多试几次)

bower install

终于成功了,我太难了......