我正面临一个小问题......我即将在Exercism.io上开始一些Kata练习
当我运行测试时,我有一个Gem:ConflictError
/Users/john/.rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/specification.rb:2325:in `raise_if_conflicts': Unable to activate railties-5.1.4, because activesupport-5.1.5 conflicts with activesupport (= 5.1.4) (Gem::ConflictError)
from /Users/john/.rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/specification.rb:1438:in `activate'
from /Users/john/.rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems.rb:224:in `rescue in try_activate'
from /Users/john/.rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems.rb:217:in `try_activate'
from /Users/john/.rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'
from /Users/john/.rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:40:in `require'
from /Users/john/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/railties-5.1.4/lib/minitest/rails_plugin.rb:2:in `<top (required)>'
from /Users/john/.rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from /Users/john/.rbenv/versions/2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from /Users/john/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.11.3/lib/minitest.rb:98:in `block in load_plugins'
from /Users/john/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.11.3/lib/minitest.rb:92:in `each'
from /Users/john/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.11.3/lib/minitest.rb:92:in `load_plugins'
from /Users/john/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.11.3/lib/minitest.rb:121:in `run'
from /Users/john/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/minitest-5.11.3/lib/minitest.rb:63:in `block in autorun'
我不知道该怎么做......
答案 0 :(得分:4)
gem update railties
为我解决了这个问题