前提・実現したいこと
hello_app を作成し、Gemfileをリスト1.5に変更した後に
bundle installを実行したのですが、うまくいきません。
bundle update
bundle update spring
bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java
など、エラーメッセージに書かれていることは実行しましたが、ループしてしまいます。
発生している問題・エラーメッセージ
$ bundle install The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`. Fetching gem metadata from https://rubygems.org/............ Fetching gem metadata from https://rubygems.org/. You have requested: spring = 2.0.2 The bundle currently has spring locked at 2.1.0. Try running `bundle update spring` If you are updating multiple gems in your Gemfile at once, try passing them all to `bundle update`
該当のソースコード
ruby
1 2gem 'rails', '5.1.6' 3gem 'puma', '3.9.1' 4gem 'sass-rails', '5.0.6' 5gem 'uglifier', '3.2.0' 6gem 'coffee-rails', '4.2.2' 7gem 'jquery-rails', '4.3.1' 8gem 'turbolinks', '5.0.1' 9gem 'jbuilder', '2.6.4' 10 11group :development, :test do 12 gem 'sqlite3', '1.3.13' 13 gem 'byebug', '9.0.6', platform: :mri 14end 15 16group :development do 17 gem 'web-console', '3.5.1' 18 gem 'listen', '3.1.5' 19 gem 'spring', '2.0.2' 20 gem 'spring-watcher-listen', '2.0.1' 21end 22 23# Windows環境ではtzinfo-dataというgemを含める必要があります 24gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
補足情報(FW/ツールのバージョンなど)
ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]
あなたの回答
tips
プレビュー