无法激活susy-2.1.1,因为sass-3.2.17与sass(〜> 3.3.0)冲突 [英] Unable to activate susy-2.1.1, because sass-3.2.17 conflicts with sass (~> 3.3.0)

查看:102
本文介绍了无法激活susy-2.1.1,因为sass-3.2.17与sass(〜> 3.3.0)冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了最新版本的指南针,sass和susy。但仍然出现此错误:

pre $ 无法激活susy-2.1.1,因为sass-3.2.17与sass冲突(〜> 3.3.0)

任何人都知道这个Ruby的工作原理?



这是我安装的宝石列表:

  ***本地GEMS ** * b 
$ b CFPropertyList(2.2.0)
chunky_png(1.3.0)
指南针(0.12.4)
罗盘核心(1.0.0.alpha.19 )
compass-import-once(1.0.4)
compass-rails(1.1.3)
fssm(0.2.10)
libxml-ruby(2.6.0)
multi_json(1.9.2)
nokogiri(1.5.6)
rb-fsevent(0.9.4)
ruby​​gems-update(2.2.2)
sass(3.3 (1.3.7)
susy(2.1.1)


解决方案

如果您使用Bundler,它将确保您的Gemfile中的宝石是您的项目使用的宝石。所以你的Gemfile应该指定susy,〜> 2.1.1和sass,〜> 3.3.2,加上你需要的其他东西,比如breakpoint,〜> 2.4.1。然后,在Ruby gems文件夹中安装哪些版本并不重要。然后,当您执行捆绑安装时,Bundler会确保您的项目仅使用正确的依赖关系。这当然是通过终端的CLI指令。或者,如果您不想使用Bundler,只需执行'sudo gem uninstall sass -v 3.2.17'。


I have installed the latest versions of compass, sass and susy. But still I am getting this error:

Unable to activate susy-2.1.1, because sass-3.2.17 conflicts with sass (~> 3.3.0)

Anyone knows how this Ruby thing works?

This is the list of my installed gems:

*** LOCAL GEMS ***

CFPropertyList (2.2.0)
chunky_png (1.3.0)
compass (0.12.4)
compass-core (1.0.0.alpha.19)
compass-import-once (1.0.4)
compass-rails (1.1.3)
fssm (0.2.10)
libxml-ruby (2.6.0)
multi_json (1.9.2)
nokogiri (1.5.6)
rb-fsevent (0.9.4)
rubygems-update (2.2.2)
sass (3.3.4, 3.3.3, 3.2.17)
sqlite3 (1.3.7)
susy (2.1.1)

解决方案

If you use Bundler, it will ensure that the gems in your Gemfile are the ones used by your project. So your Gemfile should specify "susy", "~>2.1.1" and "sass", "~>3.3.2", plus any other that you require, such as "breakpoint", "~>2.4.1". It then won't matter what versions are installed inside your Ruby gems folder. When you then do a 'bundle install', Bundler ensures that your project will only use the correct dependencies. This is, of course, a CLI instruction through the terminal. Alternatively, simply do a 'sudo gem uninstall sass -v 3.2.17', if you don't want to use Bundler.

这篇关于无法激活susy-2.1.1,因为sass-3.2.17与sass(〜> 3.3.0)冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆