我在安装凉亭时遇到问题。
bower ECMDERR 无法执行“git ls-remote --tags --heads HTTPS_LINK to bower-angular-mocks.git”,退出代码 #128
我遵循了Git / Bower Errors: Exit Code # 128 & Failed connect中提到的建议。我已经为 GIT 和 Bower 做了推荐的代理设置。
.bowerrc
"proxy" : "PROXY_URL",
"https-proxy" : "PROXY_URL"
胃肠道
http.proxy=PROXY_URL
git config --global url."https://".insteadOf git:// [GIT config to use HTTPS in place of GIT]
这是我的完整错误日志:
bower not-cached HTTPS_LINK to bower-angular.git#1.2.x
bower resolve HTTPS_LINK to bower-angular.git#1.2.x
bower not-cached HTTPS_LINK to bower-angular-loader.git#1.2.x
bower resolve HTTPS_LINK to bower-angular-loader.git#1.2.x
bower not-cached HTTPS_LINK to bower-angular-route.git#1.2.x
bower resolve HTTPS_LINK to bower-angular-route.git#1.2.x
bower not-cached HTTPS_LINK to html5-boilerplate.git#~4.3.0
bower resolve HTTPS_LINK to html5-boilerplate.git#~4.3.0
bower not-cached HTTPS_LINK to bower-angular-mocks.git#~1.2.x
bower resolve HTTPS_LINK to bower-angular-mocks.git#~1.2.x
bower ECMDERR Failed to execute "git ls-remote --tags --heads https://gith
ub.com/angular/bower-angular-mocks.git", exit code of #128
Additional error details:
fatal: unable to access '**https://**github.com/angular/bower-angular-mocks.git/': F
ailed connect to github.com:443; No error
从日志中我可以看到 bower 使用的是 HTTPS 而不是 GIT。另一个更新是我能够在 GIT 上执行失败的命令。
git ls-remote --tags --heads HTTPS_LINK