以下を参考にWindows10でVagrant + Virtualbox による仮想環境を用意し、railsの雛形を作成を試みました。
https://www.sejuku.net/blog/39936
しかし本サイトの「Ruby on Rails のインストール」にて、railsの雛形を作成するコマンドを入力したところ
[DEPRECATED] Bundler.with_clean_env
has been deprecated in favor of Bundler.with_unbundled_env
. If you instead want the environment before bundler was originally loaded, use Bundler.with_original_env
(called at /home/vagrant/app/rails/Hero_Display/vendor/bundler/ruby/2.7.0/gems/railties-5.1.7/lib/rails/generators/app_base.rb:385)
Fetching gem metadata from https://rubygems.org/.............
Resolving dependencies.....
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 (>= 2.8, < 4.0)
rails (~> 5.1.7) was resolved to 5.1.7, which depends on sprockets-rails (>= 2.0.0) was resolved to 3.2.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.
run bundle exec spring binstub --all
bundler: command not found: spring
Install missing gem executables with bundle install
というエラーを吐かれ、命令通りbundle installと打っても
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 (>= 2.8, < 4.0)
rails (~> 5.1.7) was resolved to 5.1.7, which depends on sprockets-rails (>= 2.0.0) was resolved to 3.2.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と打っても、上記のようなエラーが4つ出るだけでした。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2021/09/13 08:32
2021/09/13 08:45
2021/09/13 08:52
2021/09/13 08:59
2021/09/13 09:01
2021/09/13 09:17
2021/09/13 09:39
2021/09/13 09:53
2021/09/13 10:03 編集
2021/09/13 10:02
2021/09/13 10:37 編集
2021/09/15 07:11