やすまんの技術ブログ

駆け出しエンジニアが日々学んだこと、わからなかったことなどをまとめておくブログ。忘備録としても使います。

bundle installしたらエラーが出た。

Bundler could not find compatible versions for gem "sass-rails":

  In snapshot (Gemfile.lock):

    sass-rails (= 5.1.0)

 

  In Gemfile:

    sass-rails (~> 5.0)

 

    compass-rails (= 3.1.0) was resolved to 3.1.0, which depends on

      sass-rails (< 5.1)

 

Running `bundle update` will rebuild your snapshot from scratch, using only

the gems in your Gemfile, which may resolve the conflict.

 

と表示されてしまった。

 

これは、バージョンにズレがあるよと言っているので、

bundle updateをして、全て最新のものにアップデートしてあげると解決する。