Bower:退出代码#128致命

时间:2015-07-29 16:35:48

标签: git npm bower

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

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

如果我直接尝试克隆回购,那就完成了!

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.

1 个答案:

答案 0 :(得分:1)

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

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

相关问题