我在 bower 安装时遇到了问题。
引用: 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
引用: 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"
GIT
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