環境
- 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が作成されるので問題なし。