`bundle exec`不起作用,说“mri_22`不是一个有效的平台”

时间:2015-03-31 03:05:25

标签: ruby bundler

我正在尝试在Ruby项目中使用bundle exec运行命令。但是,每当我运行它时,我都会看到一条错误消息:

$ bundle exec rake test
`mri_22` is not a valid platform. The available options are: [:ruby, :ruby_18,
:ruby_19, :ruby_20, :ruby_21, :mri, :mri_18, :mri_19, :mri_20, :mri_21, :rbx,
:jruby, :jruby_18, :jruby_19, :mswin, :mingw, :mingw_18, :mingw_19, :mingw_20,
:mingw_21, :x64_mingw, :x64_mingw_20, :x64_mingw_21]

如何让bundle工作?

1 个答案:

答案 0 :(得分:1)

您正在运行的bundler版本已过期。通过运行

安装最新的bundle gem
gem update bundler

来源:https://github.com/codeforamerica/congress/issues/10