【问题标题】:bower install error ECMDERR凉亭安装错误 ECMDERR
【发布时间】:2016-06-13 01:52:36
【问题描述】:

我正在尝试使用 ionic 跟随角度材料教程 http://www.angular-meteor.com/tutorials/whatsapp/ionic/bootstrapping

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

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.

我在这里发现了很多相同的问题,我很多都通过运行解决了

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

但我试过了,并没有解决我的问题。 有没有办法修复它?如果没有,除了 bower 还有其他方法吗?

【问题讨论】:

    标签: bower angular-material bower-install


    【解决方案1】:

    问题出在 .gitconfig 文件上(在我的情况下位于 c:/users/my-account-name/ 中)

    我刚刚删除了这些行

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

    它奏效了。我认为就我而言,我不应该运行命令

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-03-14
      • 2014-03-14
      • 2015-09-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-03
      相关资源
      最近更新 更多