代码之家  ›  专栏  ›  技术社区  ›  Amer Jaganjac

Sass宝石冲突

  •  0
  • Amer Jaganjac  · 技术社区  · 7 年前

    当我想在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 回复  |  直到 7 年前
        1
  •  0
  •   Rahul Sharma    7 年前

    用gem“sass rails”替换sass rails,“~>6.0.0.beta1'将解决您的问题。并使用sass 3.4版

    如果您不想使用sass-rails的beta版,则必须将compass降级为gem“compass”,“~>0.12.1'.