如何解决“警告:Bundler的运行版本早于创建锁文件的版本”

时间:2019-06-04 19:18:26

标签: ruby

我已经尝试了多次卸载捆绑软件并重新安装捆绑软件,但不知何故,我仍然看到此错误:

➜  gem uninstall bundler
Remove executables:
  bundler

in addition to the gem? [Yn]  y
Removing bundler
Successfully uninstalled bundler-2.0.1

➜  gem install bundler
Fetching: bundler-2.0.1.gem (100%)
Successfully installed bundler-2.0.1
1 gem installed

➜  bundle
Warning: the running version of Bundler (1.16.6) is older than the version that created the lockfile (1.17.3). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.

1 个答案:

答案 0 :(得分:0)

只需卸载并重新安装警告中的所需版本,以防您需要1.17.3版本。

gem uninstall bundler
gem install bundler -v 1.17.3