Git / Bower错误:退出代码#128&连接失败 [英] Git / Bower Errors: Exit Code # 128 & Failed connect

查看:152
本文介绍了Git / Bower错误:退出代码#128&连接失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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无法执行git ls -remote --tags - heads git:// github
.com / twbs / bootstrap.git,退出代码#128

其他错误详细信息:
致命:无法访问'https://github.com/twbs/bootstrap.git/':无法将
连接到github.com:443;没有错误

我曾尝试使用以下解决方案来删除第一个错误 - a href =https://github.com/bower/bower/issues/689 =noreferrer>搜索:

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

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



谢谢!



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

解决方案

端口22被我的电脑阻塞。一旦我发现什么阻止了它并打开了端口,我就能够运行bower install cmd而没有任何问题。


I am using Bower to install several libraries. For demonstration purposes here, I am installing bootstrap. Regardless of the package, I receive the following errors:

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    

I have tried using the following solution to remove the first error - which I found from this search:

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

However, this does not work nor do any of the other solutions found on that page. Searching for a solution for the 2nd error, it seems that setting a username/pwd for a proxy server will resolve the issue if you are on a corporate network/behind a firewall. However, I am not using a proxy server as I am on my home pc/network (windows 7 x64).

Thanks!

EDIT: Command window with errors:

解决方案

Port 22 was being blocked on my computer. Once I found what was blocking it and opened the port, I was able to run the bower install cmd without any issues.

这篇关于Git / Bower错误:退出代码#128&连接失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆