我正面临着凉亭安装问题。
bower ECMDERR无法执行“git ls-remote --tags --heads HTTPS_LINK to bower-angular-mocks.git“,退出代码#128
我遵循Git / Bower Errors: Exit Code # 128 & Failed connect中提到的建议。我为GIT和amp;做了推荐的代理设置。亭子。
.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
答案 0 :(得分:8)
我遇到了类似的问题,因为凉亭未能获得角度动画。我能够通过运行
来解决这个问题git config --global url。“https://”.insteadOf“git://”
确保导航到App项目文件夹并运行该文件夹以查看是否可以解决您的问题
答案 1 :(得分:4)
如果它是一个新项目类型git init,以便在项目目录中创建一个git存储库,那么试试这个
git config --local url."https://".insteadOf "git://"
此配置仅影响本地项目
然后尝试凉亭命令
如果您想要全球解决方案,请尝试使用
git config --global url."https://".insteadOf git://
此网址中的更深层解释:http://jgoodall.me/posts/2013/05/29/git-use-https/
答案 2 :(得分:2)
我遇到了这个问题并删除了C:\ user \ AppData \ Roaming \ bower \ cache为我清除了
答案 3 :(得分:1)
运行" bower install"在git bash中,清理C:\ Users \\ AppData \ Local \ bower,运行" git config --global url。" https://" .insteadOf git://&# 34;那么" bower cache clean"。最后" bower install"全都在Giy Bash。