由于多个ruby版本,无法捆绑更新

时间:2017-07-04 13:47:51

标签: ruby-on-rails ruby

我尝试使用bundle更新:

bundle update
Warning: the running version of Bundler (1.13.6) is older than the version that created the lockfile (1.13.7). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
Ignoring ffi-1.9.10 because its extensions are not built.  Try: gem pristine ffi --version 1.9.10
Ignoring json-1.8.3 because its extensions are not built.  Try: gem pristine json --version 1.8.3
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Resolving dependencies...
liquid-4.0.0 requires ruby version >= 2.1.0, which is incompatible with the
current version, ruby 2.0.0p648

所以我试试

ruby --version
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]

看起来bundle正在使用不同的ruby实例?

1 个答案:

答案 0 :(得分:1)

运行bundle env时使用的是什么版本?

您可以尝试使用以下内容重新安装bundler:gem install bundler

但首先你可以阅读更多关于here

的内容