Bower Install error: Unable to connect & exit code of #128

霸气de小男生 提交于 2019-12-01 21:57:59

I was having a similar issues where bower failed to get angular-animate. I was able to resolve this issue by running

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

Make sure you navigate to your App project folder and run that to see if that would resolve your issues

If it is a new project type git init in order to create a git repository in your project directory, then try this

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

This configuration will only affect local project

Then try bower commands

If you want a global solution try this

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

A deeper explanation in this url: http://jgoodall.me/posts/2013/05/29/git-use-https/

I have had this issue and deleting C:\user\AppData\Roaming\bower\cache clears it up for me

Running the "bower install" in git bash, cleaning the C:\Users\\AppData\Local\bower, run "git config --global url."https://".insteadOf git://" then "bower cache clean". Finally "bower install" all in Giy Bash.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!