[英]How to find the path of where a Ruby Gem is installed
I have just installed cucumber and bundler in my MAC and I get this error message: 我刚刚在我的MAC中安装了黄瓜和捆扎机,然后收到以下错误消息:
Error creating formatter: Teamcity::Cucumber::Formatter (ArgumentError)
gem 'cucumber', version
load Gem.bin_path('cucumber', 'cucumber', version)
According to this ticket , cucumber >= 2.1.0
is not supported yet. 根据此票证 ,尚不支持cucumber >= 2.1.0
。 You can downgrade, wait for an update, or use their suggested monkey patch: 您可以降级,等待更新或使用其建议的猴子补丁:
find in RubyMine folder file named "formatter_03103.rb" and replace line 22 to 在名为“ formatter_03103.rb”的RubyMine文件夹文件中找到并将第22行替换为
def initialize(step_mother, path_or_io, options)
and line 24 to 然后第24行到
tc_initialize(options, '|', path_or_io)
And the command gem environment
returns lots of info about your gems, including the INSTALLATION DIRECTORY
. 并且命令gem environment
返回有关您的gem的许多信息,包括INSTALLATION DIRECTORY
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.