Sem*_*ğlu 25 ruby-on-rails bundler ruby-on-rails-6
在开发/测试时,我的控制台中不断出现此错误
Warning: the running version of Bundler (2.1.2) is older than the version that created the lockfile (2.1.4). We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.1.4`.
Run Code Online (Sandbox Code Playgroud)
它根本没有阻止我,而是在打扰我。我知道最简单的解决方案就是将我的 Gemfile.lock 更新为这个。
BUNDLED WITH
2.1.2
Run Code Online (Sandbox Code Playgroud)
但我想永久解决这个问题。我试着
gem uninstall bundler
Run Code Online (Sandbox Code Playgroud)
进而
gem install bundler -v 2.1.4
Run Code Online (Sandbox Code Playgroud)
它让我一直给这个错误
Gem bundler-2.1.2 cannot be uninstalled because it is a default gem
Run Code Online (Sandbox Code Playgroud)
当我尝试首先安装 2.1.4 然后删除 bundler 2.1.2 控制台给我这个输出。
Gem bundler-2.1.2 cannot be uninstalled because it is a default gem
Successfully uninstalled bundler-2.1.4
Run Code Online (Sandbox Code Playgroud)
这个问题有什么解决办法吗?提前致谢
Igo*_*kov 15
直接运行gem install bundler:2.1.4,不用担心ruby自带的老版本,应该不会用的。
| 归档时间: |
|
| 查看次数: |
10910 次 |
| 最近记录: |