Bower软件包安装错误

时间:2015-12-07 07:27:30

标签: git github bower command-prompt

我已经通过npm在我的项目中安装了bower。 后来我尝试通过凉亭安装角度js。

bower install angular#1.4.8

但是我收到了以下错误

bower not-cached    git://github.com/angular/bower-angular.git#1.4.8
bower resolve       git://github.com/angular/bower-angular.git#1.4.8
bower ECMDERR       Failed to execute "git ls-remote --tags --heads git://github
.com/angular/bower-angular.git", exit code of #128 fatal: unable to connect to g
ithub.com: github.com[0: 192.30.252.130]: errno=No error

Additional error details:
fatal: unable to connect to github.com:
github.com[0: 192.30.252.130]: errno=No error

我已经读过这些错误是由于防火墙问题和git过时的问题而发生的?

但是我试过了,不幸的是我没有为我工作。 提前致谢

1 个答案:

答案 0 :(得分:0)

您可能在防火墙或代理服务器后面,这就是造成问题的原因。当你在办公室网络时,很可能会发生这种情况:

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

如果问题仍然存在,则会出现代理服务器问题。试试这个:

{
   "directory": "app/bower_components",
   "proxy": "http://proxyserver:port",
   "https-proxy": "http://proxyserver:port,
   "strict-ssl": false
}

git config --global http.proxy http://user:password@proxyserver:port