gpt4 book ai didi

ruby-on-rails - Bundler 找不到 gem "activesupport"的兼容版本

转载 作者:行者123 更新时间:2023-12-04 02:56:11 25 4
gpt4 key购买 nike

我迁移到 3.2.13 版本的 rails 并收到此错误,我该如何摆脱这个错误?

Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "activesupport":
In snapshot (Gemfile.lock):
activesupport (3.2.12)

In Gemfile:
rails (= 3.2.13) ruby depends on
activesupport (= 3.2.13) ruby

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

编辑
sinatra (1.3.6)
rack (~> 1.4)
rack-protection (~> 1.3)
tilt (~> 1.3, >= 1.3.3)

最佳答案

对于不小心访问此链接的任何人(当时谷歌首先提供此页面);查看此帖子 Bundler could not find compatible versions for gem, updating Rails app

我的步骤被运行

gem update rails

rm Gemfile.lock

更改我的 Gemfile 以引用我想要的 rails 版本
gem 'rails', '3.2.13'

终于跑了
bundle install 

我没有像@PistachioPony 建议的那样尝试捆绑更新,但这可能会代替删除锁定文件并重建。

关于ruby-on-rails - Bundler 找不到 gem "activesupport"的兼容版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15597361/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com