0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Railsエラー GemNotFoundExceptionの解決方法

Posted at

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

を実行して解決。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?