bower install error ECMDERR

只愿长相守 提交于 2019-12-12 05:38:34

问题


I'm trying to follow along angular-material tutoriel http://www.angular-meteor.com/tutorials/whatsapp/ionic/bootstrapping using ionic.

When I tried to do bower install, I got the following error:

bower not-cached    git://github.com/driftyco/ionic-bower.git#1.2.4
bower resolve       git://github.com/driftyco/ionic-bower.git#1.2.4
bower ECMDERR       Failed to execute "git ls-remote --tags --heads 
git://github.com/driftyco/ionic-bower.git", exit code of #128 ssh: Could not resolve 
hostname https: Name or service not known fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

Additional error details:
ssh: Could not resolve hostname https: Name or service not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

I found many questions here with the same problem, and I lot of them were solved by running

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

But I tried it, and it didn't solve mine. is there anyway to fix it? if not, is there anyway other than bower to do this?


回答1:


The problem was with the .gitconfig file (located for me case in c:/users/my-account-name/ )

I just deleted these lines

[url "https:/"]
insteadOf = git://
[url "http://"]
insteadOf = git://

and it worked. I think in my case, I shouldn't have run the command

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


来源:https://stackoverflow.com/questions/35709480/bower-install-error-ecmderr

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