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