gitで既存のRailsアプリを新しくクローンし、bundle installをした結果以下のエラーが発生。
Traceback (most recent call last):
4: from bin/rails:7:in `<main>'
3: from bin/rails:7:in `require_relative'
2: from /Users/ishizukatakero/projects/error-pictweet/error-pictweet/config/boot.rb:3:in `<top (required)>'
1: from /Users/ishizukatakero/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
/Users/ishizukatakero/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- bundler/setup (LoadError)
その後、
gem install bundler
を実行したが、以下のエラーが発生。
You have requested:
sass-rails = 5.0.8
The bundle currently has sass-rails locked at 5.0.7.
Try running `bundle update sass-rails`
Gemfile.lockのsass-railsのバージョンを5.0.8に変更。
その後、
bundle update sass-rails
を実行し、その後、
bundle install
を実行して解決。