运行bower脚本以在angular:
中构建前端时出现错误bower angular-ui-utils#bower ECMDERR无法执行" git ls-remote --tags --heads https://github.com/angular-ui/ui-utils.git",退出#128错误代码:访问时 https://github.com/angular-ui/ui-utils.git/info/refs致命:HTTP 请求失败
上一个链接指出:
"请升级您的git客户端。 GitHub.com不再支持git over dumb-http: https://github.com/blog/809-git-dumb-http-transport-to-be-turned-off-in-90-days"
所以,好像我的机器有一个旧版本的Git客户端......但是 我刚刚更新了(yum update):
并且仍然会发生同样的错误。 更多,它不应该发生,因为上面的github链接说:
"从2011年6月7日开始,GitHub将不再支持抓取 Git" dumb" HTTP传输机制。除非你这样做不会对你产生影响 您在v1.6.6之前运行git版本并使用http获取 远程URL。"
我的git客户端版本(1.7.x)高于最低要求(1.6.6)。所以我认为这不是问题所在。
npm或bower是否有可能过时的内部git客户端?
非常欢迎任何有关如何解决此问题的提示。 感谢
这是jenkins构建日志的一部分:
+ sudo -E npm update
+ bower install
bower angular-ui-utils extra-resolution Unnecessary resolution: angular-ui-utils#bower
+ bower update
bower angular-card-input#* not-cached https://github.com/OutlawAndy/angular-card-input.git#*
bower angular-card-input#* resolve https://github.com/OutlawAndy/angular-card-input.git#*
bower angular-ui-utils#bower not-cached https://github.com/angular-ui/ui-utils.git#bower
bower angular-ui-utils#bower resolve https://github.com/angular-ui/ui-utils.git#bower
bower angular#1.4.8 cached https://github.com/angular/bower-angular.git#1.4.8
bower angular#1.4.8 validate 1.4.8 against https://github.com/angular/bower-angular.git#1.4.8
bower angular-sanitize#1.4.8 cached https://github.com/angular/bower-angular-sanitize.git#1.4.8
bower angular-sanitize#1.4.8 validate 1.4.8 against https://github.com/angular/bower-angular-sanitize.git#1.4.8
bower font-awesome#~4.2.0 cached https://github.com/FortAwesome/Font-Awesome.git#4.2.0
bower font-awesome#~4.2.0 validate 4.2.0 against https://github.com/FortAwesome/Font-Awesome.git#~4.2.0
bower json3#~3.3.1 cached https://github.com/bestiejs/json3.git#3.3.2
bower json3#~3.3.1 validate 3.3.2 against https://github.com/bestiejs/json3.git#~3.3.1
bower angular-resource#1.4.8 cached https://github.com/angular/bower-angular-resource.git#1.4.8
bower angular-resource#1.4.8 validate 1.4.8 against https://github.com/angular/bower-angular-resource.git#1.4.8
bower es5-shim#~4.0.3 cached https://github.com/es-shims/es5-shim.git#4.0.6
bower es5-shim#~4.0.3 validate 4.0.6 against https://github.com/es-shims/es5-shim.git#~4.0.3
bower angular-bootstrap-show-errors#* cached https://github.com/paulyoder/angular-bootstrap-show-errors.git#2.3.0
bower angular-bootstrap-show-errors#* validate 2.3.0 against https://github.com/paulyoder/angular-bootstrap-show-errors.git#*
bower angular-ui-router#~0.2.11 cached https://github.com/angular-ui/angular-ui-router-bower.git#0.2.18
bower angular-ui-router#~0.2.11 validate 0.2.18 against https://github.com/angular-ui/angular-ui-router-bower.git#~0.2.11
bower ngstorage#~0.3.6 cached https://github.com/gsklee/ngStorage.git#0.3.11
bower ngstorage#~0.3.6 validate 0.3.11 against https://github.com/gsklee/ngStorage.git#~0.3.6
bower angular-translate-handler-log#~2.8.0 cached https://github.com/PascalPrecht/bower-angular-translate-handler-log.git#2.8.1
bower angular-translate-handler-log#~2.8.0 validate 2.8.1 against https://github.com/PascalPrecht/bower-angular-translate-handler-log.git#~2.8.0
bower angular-translate#~2.8.0 cached https://github.com/PascalPrecht/bower-angular-translate.git#2.8.1
bower angular-translate#~2.8.0 validate 2.8.1 against https://github.com/PascalPrecht/bower-angular-translate.git#~2.8.0
bower famfamfam-flags-sprite#~1.0.0 cached https://github.com/atelierspierrot/famfamfam-flags-sprite.git#1.0.0
bower famfamfam-flags-sprite#~1.0.0 validate 1.0.0 against https://github.com/atelierspierrot/famfamfam-flags-sprite.git#~1.0.0
bower angular-bootstrap#~0.11.2 cached https://github.com/angular-ui/bootstrap-bower.git#0.11.2
bower angular-bootstrap#~0.11.2 validate 0.11.2 against https://github.com/angular-ui/bootstrap-bower.git#~0.11.2
bower moment-timezone#~0.4.1 cached https://github.com/moment/moment-timezone.git#0.4.1
bower moment-timezone#~0.4.1 validate 0.4.1 against https://github.com/moment/moment-timezone.git#~0.4.1
bower angular-moment#~0.9.0 cached https://github.com/urish/angular-moment.git#0.9.2
bower angular-moment#~0.9.0 validate 0.9.2 against https://github.com/urish/angular-moment.git#~0.9.0
bower moment#~2.9.0 cached https://github.com/moment/moment.git#2.9.0
bower moment#~2.9.0 validate 2.9.0 against https://github.com/moment/moment.git#~2.9.0
bower jstzdetect#~1.0.6 cached https://github.com/HenningM/jstimezonedetect.git#1.0.6
bower jstzdetect#~1.0.6 validate 1.0.6 against https://github.com/HenningM/jstimezonedetect.git#~1.0.6
bower angular-messages#1.4.8 cached https://github.com/angular/bower-angular-messages.git#1.4.8
bower angular-messages#1.4.8 validate 1.4.8 against https://github.com/angular/bower-angular-messages.git#1.4.8
bower angular-mocks#1.4.8 cached https://github.com/angular/bower-angular-mocks.git#1.4.8
bower angular-mocks#1.4.8 validate 1.4.8 against https://github.com/angular/bower-angular-mocks.git#1.4.8
bower angular-scenario#1.4.8 cached https://github.com/angular/bower-angular-scenario.git#1.4.8
bower angular-scenario#1.4.8 validate 1.4.8 against https://github.com/angular/bower-angular-scenario.git#1.4.8
bower angular-ui-utils#bower ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/angular-ui/ui-utils.git", exit code of #128 error: while accessing https://github.com/angular-ui/ui-utils.git/info/refs fatal: HTTP request failed
Additional error details:
error: while accessing https://github.com/angular-ui/ui-utils.git/info/refs
fatal: HTTP request failed
Build step 'Execute shell' marked build as failure
[WARNINGS] Skipping publisher since build result is FAILURE
Archiving artifacts
Finished: FAILURE
答案 0 :(得分:0)
您的问题可能来自以下方面:
2018年2月22日19:00 UTC(太平洋标准时间上午11:00)GitHub停止运行 支持加密弱TLS 1.0& 1.1协议和 仅支持与TLS 1.2协议的连接
我猜您的问题仅在February 22, 2018 19:00 UTC
之后开始。顺便说一下我是Windows面临同样的问题,更新git但最新稳定的git版本对我来说是2.16.2,可能是因为windows版本对于来自linux的git是不同的。
有关此更改的更多详细信息,请参阅GitHub Engineering博客文章: https://githubengineering.com/crypto-removal-notice/
升级git客户端版本是不够的。 要使git客户端与TLS v1.2一起使用,您需要升级相关的包。 例如,如果您使用RHEL或centos,您还应升级以下RPM:
ssl*
tls*
libcurl
curl
nss*