bundle install
をターミナルで行うと、以下のようなエラーが発生します。
MacBook-Pro-2 acme_corp % bundle install Fetching gem metadata from https://rubygems.org/........... Fetching gem metadata from https://rubygems.org/. Resolving dependencies........ Bundler could not find compatible versions for gem "activemodel": In Gemfile: mongoid (~> 6.4.0) was resolved to 6.4.8, which depends on activemodel (>= 5.1, < 6.0.0) rails (~> 6.0.2, >= 6.0.2.1) was resolved to 6.0.3.rc1, which depends on activemodel (= 6.0.3.rc1)
Gemfile
1# By default, Wagon 3 doesn't need `bundle exec` to be executed. 2# However, if down the road, you want to run a specific version of Wagon or try a new version 3# without overriding the global Wagon binary, please use this Gemfile. 4 5source 'https://rubygems.org' 6 7gem 'rails', '~> 6.0.2', '>= 6.0.2.1' 8 9gem 'locomotivecms_wagon', '~> 3.0.5' 10gem 'devise', '~> 4.7.1' 11gem 'mongoid', '~> 6.4.0' 12 13group :assets do 14 gem 'compass', '~> 1.0.3' 15 gem 'compass-rails', '~> 4.0.0' 16 gem 'sass-rails', '< 5.1' 17 gem 'coffee-rails', '~> 5.0.0' 18 gem 'uglifier', '~> 4.2.0' 19 gem 'therubyracer', :platforms => :ruby 20end 21 22gem 'unicorn' 23 24group :development do 25 # Mac OS X 26 gem 'rb-fsevent', '~> 0.10.0', require: 'rb-fsevent' if RUBY_PLATFORM.include?('darwin') 27 28 # Unix 29 gem 'therubyracer', require: 'v8', platforms: :ruby unless RUBY_PLATFORM.include?('darwin') 30 31 gem 'rb-inotify', '~> 0.10.0', require: 'rb-inotify' if RUBY_PLATFORM.include?('linux') 32 33 # Windows 34 gem 'wdm', '~> 0.1.1', require: 'wdm' if RUBY_PLATFORM =~ /mswin|mingw/i 35end
gem "activemodel"
の場合、どこを編集すべきでしょうか?
恐れ入りますが、解決方法をご教授いただけないでしょうか?
どうすれば良いかはエラーに書いてありますが、読まれましたか?