冲突的sass /指南针版本 [英] conflicting sass / compass versions

查看:157
本文介绍了冲突的sass /指南针版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我继承了一个项目,并且在设置sass / compass工作流程时遇到问题。 Google搜索没有提供任何有用的信息。



我有以下内容:

  $ cat / etc / *  -  release 
DISTRIB_ID = LinuxMint
DISTRIB_RELEASE = 15
DISTRIB_CODENAME = olivia
DISTRIB_DESCRIPTION =Linux Mint 15 Olivia
NAME =Ubuntu
VERSION =13.04,Raring Ringtail
ID = ubuntu
ID_LIKE = debian
PRETTY_NAME =Ubuntu 13.04
VERSION_ID = 13.04

$ ruby​​ --version
ruby​​ 1.9.3p194(2012-04-20修订版35410)[x86_64-linux]

$ gem list

***本地GEMS ***

断点(2.4.0)
赛璐珞(0.15.2)
chunky_png(1.2.9,1.2 .8)
color-schemer(0.2.7)
指南针(0.12.2)
指南针混合模式(0.0.2)
指南针核心(1.0.0) .16)
罗盘标准化(1.4.3)
指南针 - rgbapng(0.2.1)
ffi(1.9.3)
fssm(0.2.10)
json(1.8.1)
listen(0.7.3)
multi_json(1.8.2)
rb -fsevent(0.9.3)
rb-inotify(0.9 .3)
rb-kqueue(0.2.0)
(3.3.0.alpha.149)
sassy-maps(0.3.1)
sassy-strings(1.0.0)
奇异值(1.1.2)
susy( 1.0.9)
定时器(1.1.0)
工具包(1.3.8)
zurb-foundation(4.3.2,4.2.3)



我尝试了各种版本的sass和compass,但是我得到的错误一般归结为这个:

  $ grunt手表
运行手表任务
等待...确定
>>文件sass / reset.scss已更改。

运行compass:dist(指南针)任务
/usr/lib/ruby/1.9.1/rubygems/specification.rb行[[1637]]上的Gem :: LoadError :无法激活断点-2.4.0,因为sass-3.3.0.alpha.149与sass(〜> 3.3.0.rc.2)冲突,compass-0.12.2与罗盘(〜> 1.0)冲突。 0.alpha.13)

我的Gruntfile.js:

  module.exports = function(grunt){
grunt.initConfig({
pkg:grunt.file.readJSON('package.json')) ,
指南针:{
dist:{
选项:{
config:'config.rb'
}
}
},
watch:{
css:{
files:['sass / *。scss','sass / ** / *。scss'],
tasks:['compass' ]
}
}
});

grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadNpmTasks('grunt-contrib-watch');

grunt.registerTask('default',['compass']);
}

这些版本兼容性问题导致我失去了,并且没有Ruby背景去手工整理它们。有没有人遇到类似的问题?

解决方案

我不是Ruby或gem的专家,但它看起来像断点扩展是导致冲突的原因。阅读断点宝石文件确认它具有以下要求:


  • Sass 3.3.0.rc.2

  • Compass 1.0.0.alpha.13



这两个都比您当前安装的版本更新。值得注意的是,这两个版本都不是稳定版本,因此您必须使用 - pre 标志来更新您的宝石: sudo gem install sass --pre


I've inherited a project and am having problems setting up the sass/compass workflow. Google search didn't yield any useful info on this.

I've got the following:

$ cat /etc/*-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=15
DISTRIB_CODENAME=olivia
DISTRIB_DESCRIPTION="Linux Mint 15 Olivia"
NAME="Ubuntu"
VERSION="13.04, Raring Ringtail"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 13.04"
VERSION_ID="13.04"

$ ruby --version
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

$ gem list

*** LOCAL GEMS ***

breakpoint (2.4.0)
celluloid (0.15.2)
chunky_png (1.2.9, 1.2.8)
color-schemer (0.2.7)
compass (0.12.2)
compass-blend-modes (0.0.2)
compass-core (1.0.0.alpha.16)
compass-normalize (1.4.3)
compass-rgbapng (0.2.1)
ffi (1.9.3)
fssm (0.2.10)
json (1.8.1)
listen (0.7.3)
multi_json (1.8.2)
rb-fsevent (0.9.3)
rb-inotify (0.9.3)
rb-kqueue (0.2.0)
sass (3.3.0.alpha.149)
sassy-maps (0.3.1)
sassy-strings (1.0.0)
singularitygs (1.1.2)
susy (1.0.9)
timers (1.1.0)
toolkit (1.3.8)
zurb-foundation (4.3.2, 4.2.3)

I've tried various versions of sass and compass but the error I get generally comes down to this:

$ grunt watch
Running "watch" task
Waiting...OK
>> File "sass/reset.scss" changed.

Running "compass:dist" (compass) task
Gem::LoadError on line ["1637"] of /usr/lib/ruby/1.9.1/rubygems/specification.rb: Unable to activate breakpoint-2.4.0, because sass-3.3.0.alpha.149 conflicts with sass (~> 3.3.0.rc.2), compass-0.12.2 conflicts with compass (~> 1.0.0.alpha.13)

My Gruntfile.js:

module.exports = function(grunt) {
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    compass: {
      dist: {
        options: {
          config: 'config.rb'
        }
      }
    },
    watch: {
      css: {
        files: ['sass/*.scss', 'sass/**/*.scss'],
        tasks: ['compass']
      }
    }
  });

  grunt.loadNpmTasks('grunt-contrib-compass');
  grunt.loadNpmTasks('grunt-contrib-watch');

  grunt.registerTask('default',['compass']);
}

I'm lost with these version compatibility issues, and have no Ruby background to go and sort them out by hand. Has anyone run into similar issues?

解决方案

I'm not an expert here on Ruby or gems, but it looks like the Breakpoint extension is the one causing the conflict. Reading the Breakpoint gem file confirms that it has the following requirements:

  • Sass 3.3.0.rc.2
  • Compass 1.0.0.alpha.13

Both of these are newer than the versions you currently have installed. It is also worth noting that neither of these versions are stable versions, so you'll have to update your gems using the --pre flag: sudo gem install sass --pre.

这篇关于冲突的sass /指南针版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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