凉亭安装错误 ECMDERR [英] bower install error ECMDERR

查看:27
本文介绍了凉亭安装错误 ECMDERR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试遵循 angular-material 教程 http://www.angular-meteor.com/tutorials/whatsapp/ionic/bootstrapping 使用离子.

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

当我尝试执行 bower install 时,出现以下错误:

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://

但是我试过了,它没有解决我的问题.有没有办法解决它?如果没有,除了 bower 之外还有其他方法可以做到这一点吗?

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?

推荐答案

问题出在 .gitconfig 文件(对于我来说,位于 c:/users/my-account-name/中)

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

我刚刚删除了这些行

[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://

这篇关于凉亭安装错误 ECMDERR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆