Git/Bower 错误 : Exit Code # 128 & Failed connect

标签 git bower

我正在使用 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 中发现:

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

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

谢谢!

编辑:有错误的命令窗口:

enter image description here

最佳答案

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

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

告诉 git 使用 HTTPS 而不是 GIT,这让我安装了 npm 依赖项。

关于Git/Bower 错误 : Exit Code # 128 & Failed connect,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21544803/

相关文章:

git - 如何阻止 root 运行 git pull?

git - 如何在不终止连接的情况下更新 docker web 应用程序?

git - 在 git 中以非交互方式展示大块头

git - OwlFonk/OwlCarousel 挂了?在我们的 bower.json 中映射依赖项的位置

yii2 - bower/bower-asset 在 yii2 等 php 应用程序中扮演什么角色

symfony - Symfony2 中带有 Compass 和 Assetic 的 Foundation5

javascript - Bower:如何跳过(忽略)下载包中的某些文件

git - git:如何以编程方式确定是否需要 pull 或 push ?

javascript - Gulp bower 图像路径

gitosis 没有自动生成 projects.list,gitweb 无法工作