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

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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM