Can't get sass + compass + susy installed due to version conflict

后端 未结 3 1563
别跟我提以往
别跟我提以往 2020-11-27 21:06

I\'m working with Sass, Compass and Susy on OSX / Terminal. But I can\'t get Susy to work together with Sass and Compass. What I\'ve done:

sudo gem install s         


        
相关标签:
3条回答
  • 2020-11-27 21:26
    gem install compass --pre
    

    when you install compass lastest version will have error like:

    ERROR:  While executing gem ... (Gem::UnsatisfiableDependencyError)
        Unable to resolve dependency: 'compass (= 1.0.0.alpha.19)' requires 'compass-core (~> 1.0.0.alpha.19)'
    

    You should install compass-core first

    gem install compass-core
    
    0 讨论(0)
  • 2020-11-27 21:27

    The best way without a doubt is to install Susy via the Compass Susy Plugin. This will avoid conflicts with other Compass projects that require the current version.

    Commands:

    gem install compass
    gem install compass-susy-plugin
    
    0 讨论(0)
  • 2020-11-27 21:28

    The dependencies are incompatible: susy 2.0.0 depends on sass ~> 3.3.0 whereas compass 0.12.3 depends on sass = 3.2.14.

    The error message says the same:

    Unable to activate susy-2.0.0, because sass-3.2.14 conflicts with sass (~> 3.3.0)

    You can a) downgrade susy to a version that's working with sass 3.2.14 or b) upgrade compass to a version compatible with sass 3.3.x.

    A compatible version is compass 1.0.0 (or later) depending on sass < 3.5, >= 3.3.13. You can install it via

    gem update compass
    

    It might be easier to use a gem manager like Bundler. It automatically resolves dependencies and installs the appropriate versions.

    0 讨论(0)
提交回复
热议问题