Git / Bower 错误:退出代码 # 128 和连接失败

2023-12-28

我正在使用 Bower 安装几个库。出于演示目的,我正在安装 bootstrap。无论软件包如何,我都会收到以下错误:

C:\Scott>bower install bootstrap
bower not-cached    git://github.com/twbs/bootstrap.git#*
bower resolve       git://github.com/twbs/bootstrap.git#*
bower ECMDERR       Failed to execute "git ls-remote --tags --heads git://github
.com/twbs/bootstrap.git", exit code of #128

Additional error details:
fatal: unable to access 'https://github.com/twbs/bootstrap.git/': Failed connect
to github.com:443; No error    

我尝试使用以下解决方案来删除第一个错误 - 我从中发现search https://github.com/bower/bower/issues/689:

git config --global url."https://".insteadOf git://

但是,这不起作用,该页面上找到的任何其他解决方案也不起作用。在寻找第二个错误的解决方案时,如果您位于公司网络/防火墙后面,则为代理服务器设置用户名/密码似乎可以解决该问题。但是,我没有使用代理服务器,因为我在我的家庭电脑/网络(Windows 7 x64)上。

Thanks!

编辑:命令窗口有错误:


我知道这不是“解决”问题,但你可以使用

git config --global url."https://".insteadOf git://

告诉 git 使用 HTTPS 而不是 GIT,这对我来说可以安装 npm 依赖项。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Git / Bower 错误:退出代码 # 128 和连接失败 的相关文章

随机推荐