俺的カンニングペーパー

Web技術のカンニングペーパーを作ることを目的に発信していきます

You cannot specify the same gem twice with different version requirements[Gemfile]

🤨< gemfile触ってたらエラーが発生したので、解決方法をまとめます

[!] There was an error parsing `Gemfile`: You cannot specify the same gem twice with different version requirements.
You specified: web-console (>= 3.3.0) and web-console (~> 2.0). Bundler cannot continue.

 #  from /Users/*/*/*/Gemfile:52
 #  -------------------------------------------
 #    gem 'spring-watcher-listen', '~> 2.0.0'
 >    gem 'web-console', '~> 2.0'
 #  end
 #  -------------------------------------------

解決方法

エラー文を見てみると、
英語
You cannot specify the same gem twice with different version requirements

日本語
異なるバージョン要件で同じgemを2回指定することはできません

🤔< Gemfileに二つweb-consoleを指定しているのがエラー原因になってるとのことなので、gemfileを編集してweb-consoleを一つにします

🤪< はい解決です