LoginSignup
2
1

More than 1 year has passed since last update.

bundle installしたときにUnfortunately, an unexpected error occurred, and Bundler cannot continue.が出た時の対処法

Posted at

環境

  • MacOS Montrey 12.4
  • Rails 6.0.5
  • Ruby 2.7.6
  • Bundler 2.3.16

エラー内容

$ bundle install

不可解なエラーの発生

--- TEMPLATE END ----------------------------------------------------------------

Unfortunately, an unexpected error occurred, and Bundler cannot continue.

First, try this link to see if there are any existing issue reports for this error:
https://github.com/rubygems/rubygems/search?q=undefined+method+%60full_name%27+for+nil+NilClass&type=Issues

If there aren't any reports for this error yet, please fill in the new issue form located at https://github.com/rubygems/rubygems/issues/new?labels=Bundler&template=bundler-related-issue.md, and copy and paste the report template above in there.

解決方法

Gemfile.lockを削除してもう一度bundle installする。

間違えてファイルをいじってしまったことでGemfile.lockを読み込めなくなっていたらしい。
bundle installするともう一度Gemfile.lockが作成されるので問題なし。

2
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
2
1