【发布时间】:2014-10-28 21:35:28
【问题描述】:
我正在尝试使用 Bower 安装组件,并且我在公司的代理后面。最初我收到以下错误,
PS C:\App> bower instal
l jquery
bower not-cached git://github.com/jquery/jquery.git#*
bower resolve git://github.com/jquery/jquery.git#*
bower cached https://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angul
ar.min.js
bower validate https://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angul
ar.min.js#*
bower ECMDERR Failed to execute "git ls-remote --tags --heads git://github
.com/jquery/jquery.git", exit code of #128
Additional error details:
fatal: unable to connect to github.com:
在四处寻找后,使用以下命令找到了使用 https: 协议而不是 git 的替代方案,
git config --global url.https://.insteadOf git://
在我列出配置后,
core.symlinks=false
core.autocrlf=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
pack.packsizelimit=2g
help.format=html
http.sslcainfo=/bin/curl-ca-bundle.crt
sendemail.smtpserver=/bin/msmtp.exe
diff.astextplain.textconv=astextplain
rebase.autosquash=true
url.https://.insteadof=git://
即使完成所有这些步骤,我仍然会再次收到上述错误。
知道我错过了什么吗?
拉杰
【问题讨论】:
-
我在 windows 中搜索并找到了实际的文件位置并进行了更新。现在它起作用了。仍然想知道命令行编辑去了哪里
标签: git github bower bower-install