Sass宝石冲突

时间:2017-12-22 02:45:54

标签: ruby-on-rails ruby sass git-bash

当我想在我的GitBash中启动服务器时,我会用红色字母显示下一条消息:

Bundler could not find compatible versions for gem "sass":
  In snapshot (Gemfile.lock):
    sass (= 3.5)

  In Gemfile:
    sass (= 3.5) x86-mingw32

    compass (>= 1.0.3, ~> 1.0) x86-mingw32 was resolved to 1.0.3, which depends on
      sass (< 3.5, >= 3.3.13) x86-mingw32

    sass-rails (>= 5.0.7, ~> 5.0) x86-mingw32 was resolved to 5.0.7, which depends on
      sass (~> 3.1) x86-mingw32

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

在过去的几个小时里,我真的一直在打破这个问题。有人可以帮忙吗?

1 个答案:

答案 0 :(得分:0)

用gem'sass-rails'替换sass-rails','〜&gt; 6.0.0.beta1'将解决您的问题。并使用sass版本3.4

如果您不想使用测试版的sass rails,那么您必须将指南针降级为gem'指南针','〜&gt; 0.12.1' 。