Cucumber Install ERROR: could not find a valid gem cucumber

2016-09-20  张洪杰 

账号丢了,几年没有上测试窝,感谢小窝帮忙找回账号


最近上敏捷项目,需要使用cucumber进行自动化测试,在搭建环境过程中遇到安装问题,在此记录,遇到类似问题的同学可以参考。


问题描述:

安装好ruby后,在ruby command 安装cucumber报错,输入命令:gem install cucumber --source https://rubygems.org/,错误信息“ERROR: could not find a valid gem 'cucumber' <>=0, here is why: Unable to download data from https://rubygems.org/  -Errno::ETIMEDOUT:Failed to open TCP connection to api.rubygems.org:443”

错误截图


问题原因:

读错误日志,应该是网络原因引起的,于是先检查下公司的网络环境,是否有什么网络防火墙或代理等,后来确认公司对网络做了很多限制,这就是导致安装cucumber失败的原因。

问题找到后就容易解决,找一个没有网络限制的环境安装即可。具体安装步骤网上很多,就不详细描述。

Root Cause: it is a network issue, please make sure your network without firewall, any limitation and proxy etc. Or contact your network admin for advice.

506°/5066 人阅读/0 条评论 发表评论

登录 后发表评论