首页 > 其他分享> > bower install 报错fatal: unable to access 'https://github.com/angular/bower-angular-touch.git/
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
终于成功了,我太难了......
标签:git,github,报错,https,touch,bower,angular 来源: https://www.cnblogs.com/zhoushuang0426/p/14512270.html