前提・実現したいこと
railsの環境構築をしたい。
rails初学者です。各サイトを調べてみましたが原因が特定できませんでした
エラーの内容も特定するのが困難でした
発生している問題・エラーメッセージ
Bundler could not find compatible versions for gem "sprockets":
In snapshot (Gemfile.lock):
sprockets (= 4.0.2)
In Gemfile:
sass-rails (~> 5.0) was resolved to 5.1.0, which depends on
sprockets (< 4.0, >= 2.8)
rails (~> 5.2.6) was resolved to 5.2.6, which depends on sprockets-rails (>= 2.0.0) was resolved to 3.4.2, which depends on sprockets (>= 3.0.0)
Running bundle update
will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
試したこと
エラー文のbundle updateを試してみたが下記のエラーが検出された
Bundler could not find compatible versions for gem "actionpack":
In snapshot (Gemfile.lock):
actionpack (>= 5.2.6)
In Gemfile:
rails (~> 5.2.6) was resolved to 5.2.6, which depends on
actionpack (= 5.2.6)
rails (~> 5.2.6) was resolved to 5.2.6, which depends on sprockets-rails (>= 2.0.0) was resolved to 3.4.2, which depends on actionpack (>= 5.2)
Running bundle update
will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Bundler could not find compatible versions for gem "actionview":
In snapshot (Gemfile.lock):
actionview (>= 5.2.6)
In Gemfile:
jbuilder (~> 2.5) was resolved to 2.11.5, which depends on
actionview (>= 5.0.0)
rails (~> 5.2.6) was resolved to 5.2.6, which depends on actionview (= 5.2.6)
Running bundle update
will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Bundler could not find compatible versions for gem "activesupport":
In snapshot (Gemfile.lock):
activesupport (>= 5.2.6)
In Gemfile:
rails (~> 5.2.6) was resolved to 5.2.6, which depends on
activejob (= 5.2.6) was resolved to 5.2.6, which depends on
globalid (>= 0.3.6) was resolved to 1.0.0, which depends on
activesupport (>= 5.0)
rails (~> 5.2.6) was resolved to 5.2.6, which depends on activesupport (= 5.2.6) rails (~> 5.2.6) was resolved to 5.2.6, which depends on actionpack (= 5.2.6) was resolved to 5.2.6, which depends on rails-dom-testing (~> 2.0) was resolved to 2.0.3, which depends on activesupport (>= 4.2.0) rails (~> 5.2.6) was resolved to 5.2.6, which depends on sprockets-rails (>= 2.0.0) was resolved to 3.4.2, which depends on activesupport (>= 5.2)
Running bundle update
will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Bundler could not find compatible versions for gem "railties":
In snapshot (Gemfile.lock):
railties (>= 5.2.6)
In Gemfile:
rails (~> 5.2.6) was resolved to 5.2.6, which depends on
railties (= 5.2.6)
sass-rails (~> 5.0) was resolved to 5.1.0, which depends on railties (>= 5.2.0)
Running bundle update
will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Bundler could not find compatible versions for gem "sprockets":
In snapshot (Gemfile.lock):
sprockets (>= 4.0.2)
In Gemfile:
sass-rails (~> 5.0) was resolved to 5.1.0, which depends on
sprockets (< 4.0, >= 2.8)
rails (~> 5.2.6) was resolved to 5.2.6, which depends on sprockets-rails (>= 2.0.0) was resolved to 3.4.2, which depends on sprockets (>= 3.0.0)
Running bundle update
will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
補足情報(FW/ツールのバージョンなど)
ruby 2.7.2
Bundler version 2.2.30
vagrant
ここにより詳細な情報を記載してください。
回答1件