gpt4 book ai didi

ruby-on-rails-3 - 如何降级bundler或升级rails?

转载 作者:行者123 更新时间:2023-12-03 05:25:09 28 4
gpt4 key购买 nike

我将omniauth gem 添加到我的gemfile 中并尝试运行bundle install,但收到一条有关rails 和bundler 版本不兼容的消息。我尝试更新 Rails,但收到有关与其他 gem 不兼容的消息。如何将 bundle 程序降级到 1.0?

$ bundle install
Fetching gem metadata from http://rubygems.org/......
Fetching gem metadata from http://rubygems.org/..
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (= 3.0.0) ruby depends on
bundler (~> 1.0.0) ruby

Current Bundler version:
bundler (1.1.1)

This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?

$ bundle update rails
Fetching gem metadata from http://rubygems.org/......
Fetching gem metadata from http://rubygems.org/..
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
factory_girl_rails (>= 0) ruby depends on
bundler (~> 1.0.0) ruby

Current Bundler version:
bundler (1.1.1)

最佳答案

尝试以下命令:

gem uninstall bundler
gem install bundler --version '1.0.0'

关于ruby-on-rails-3 - 如何降级bundler或升级rails?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9725811/

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