我正在尝试在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
工作?
答案 0 :(得分:1)
您正在运行的bundler版本已过期。通过运行
安装最新的bundle
gem
gem update bundler