こんにちは。プログラミング学習中の初心者です。今、Cloud9からrailsのgemfileにdeviseを入れたら、エラーが出ています。
こんにちは。プログラミング学習中の初心者です。今、Cloud9からrailsのgemfileにdeviseを入れたら、エラーが出ています。なんだか先に進めないのですが、deviseのバージョンって最新を入れたらいいのではないでしょうか。
エラーメッセージ Bundler could not find compatible versions for gem "activemodel": In Gemfile: rails (~> 5.1.6) was resolved to 5.1.6, which depends on activemodel (= 5.1.6) web-console (>= 3.3.0) was resolved to 3.3.0, which depends on activemodel (>= 4.2) Bundler could not find compatible versions for gem "activesupport": In Gemfile: jbuilder (~> 2.5) was resolved to 2.7.0, which depends on activesupport (>= 4.2.0) rails (~> 5.1.6) was resolved to 5.1.6, which depends on activesupport (= 5.1.6) spring was resolved to 2.0.2, which depends on activesupport (>= 4.2) Bundler could not find compatible versions for gem "railties": In Gemfile: coffee-rails (~> 4.2) was resolved to 4.2.2, which depends on railties (>= 4.0.0) devise (~> 4.2.0) was resolved to 4.2.1, which depends on railties (< 5.1, >= 4.1.0) rails (~> 5.1.6) was resolved to 5.1.6, which depends on railties (= 5.1.6) sass-rails (~> 5.0) was resolved to 5.0.7, which depends on railties (< 6, >= 4.0.0) web-console (>= 3.3.0) was resolved to 3.3.0, which depends on railties (>= 4.2) ### 該当のソースコード なお、gemfileは、次のようになっていて、deviseは 4.2.0にしました。 gem 'rails', '~> 5.1.6' gem 'bootstrap-sass', '~> 3.3.7' gem 'sprockets', '~> 3.7.2' gem 'devise', '~> 4.2.0' これは、deviseのバージョンを3.0.0などに下げればいいのでしょうか・・・? 初心者ですぐにつまづき、づまづいたら先に進めません。 ご教示、よろしくおねがいします
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/07/12 14:10