【问题标题】:Bower: exit code of #128 fatalBower:#128 致命的退出代码
【发布时间】:2015-07-30 14:41:51
【问题描述】:

我有这个问题。它发生在随机库中:

bower angular-route-segment#^1.3.0  ECMDERR Failed to execute      "git ls-remote --tags --heads            git://github.com/artch/angular-route-segment.git", exit code of #128 fatal: unable to access 'https://github.com/artch/angular-route-segment.git/': Could not resolve host: github.com

这个决定没有解决我的问题:

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

如果我直接尝试克隆 repo,它就完成了!

sasha@sasha-GA-MA770T-UD3:~$ git clone  git://github.com/angular- ui/bootstrap.git
Cloning into 'bootstrap'...
remote: Counting objects: 7101, done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 7101 (delta 4), reused 0 (delta 0), pack-reused 7080
Receiving objects: 100% (7101/7101), 5.23 MiB | 1.56 MiB/s, done.
Resolving deltas: 100% (3308/3308), done.
Checking connectivity... done.

【问题讨论】:

    标签: git npm bower


    【解决方案1】:

    大多数 DNS 服务器都具有 DoS 保护,可在 X 时间内限制 DNS 请求的数量。我的互联网提供商就是其中之一。

    我将 DNS 服务器(从我的互联网提供商处收到)更改为 Google DNS 服务,它解决了我的问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-03-12
      • 2014-11-13
      • 2021-11-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多