C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/specification.rb:2325:in raise_if_conflicts'
C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/specification.rb:1438:in
activate'
C:/Ruby25-x64/lib/ruby/2.5.0/rubygems.rb:224:in rescue in try_activate'
C:/Ruby25-x64/lib/ruby/2.5.0/rubygems.rb:217:in
try_activate'
C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:128:rescue in require'
C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:39:in
中的'require'
C:/Users/Sathish/Documents/tut/features/support/env.rb:1:in <top (required)>'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/cucumber-2.0.0/lib/cucumber/rb_support/rb_language.rb:94:in
load'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/cucumber-2.0.0/lib/cucumber/rb_support/rb_language.rb:94:in load_code_file'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/cucumber-2.0.0/lib/cucumber/runtime/support_code.rb:237:in
load_file'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/cucumber-2.0.0/lib/cucumber/runtime/support_code.rb:97:in block in load_files!'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/cucumber-2.0.0/lib/cucumber/runtime/support_code.rb:96:in
in'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/cucumber-2.0.0/lib/cucumber/runtime/support_code.rb:96:in load_files!'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/cucumber-2.0.0/lib/cucumber/runtime.rb:242:in
load_step_definitions'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/cucumber-2.0.0/lib/cucumber/runtime.rb:65:run!'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/cucumber-2.0.0/lib/cucumber/cli/main.rb:38:in
中执行!”
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/cucumber-2.0.0/bin/cucumber:9:in <top (required)>'
C:/Ruby25-x64/bin/cucumber:23:in
load'
在我的json的宝石列表中,它显示
json (default: 2.1.0, 1.8.6)
尝试卸载gem json 2.1.0
但这是默认设置,将无法卸载,
卸载1.8.0,但是我得到了
C:/Ruby25-x64/lib/ruby/2.5.0/rubygems/dependency.rb:312:in to_specs': Could not find 'json' (~> 1.8) - did find: [json-2.1.0] (Gem::MissingSpecVersio
nError)
Checked in 'GEM_PATH=C:/Users/Sathish/.gem/ruby/2.5.0;C:/Ruby25-x64/lib/ruby/gems/2.5.0', execute
gem env`
有帮助吗??
答案 0 :(得分:0)
由于您要使用的主要gem具有过时的依赖关系,所以最简单的选择可能是通过安装并使用Ruby 2.3来避免内置太新的json
gem。