Compass和Susy需要不同版本的Sass [英] Compass and Susy require a different version of Sass
本文介绍了Compass和Susy需要不同版本的Sass的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在网站上工作,我想用Susy和Compass。我也使用Grunt。当我运行我的咕噜任务时,我得到这个错误:
Denniss-MacBook-Pro:portfolio dennis $ grunt --trace
在/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0行[1990]上运行compass:dev(指南针)任务
Gem :: LoadError .0 / rubygems / specification.rb:无法激活susy-2.1.1,因为sass-3.2.17与sass(〜> 3.3.0)冲突
使用--trace运行以查看完整的backtrace
警告:↑使用 - force继续。
由于警告而中止。
这是我的Grunt文件:
options:{
livereload:true
},
css:{'_sass / *。{scss,sass }'],
tasks:['compass:dev']
},
js:{
files:['js / *。js'],
任务:['uglify']
}
},
指南针:{
选项:{
require:'susy'
} ,
dev:{
options:{
sassDir:['_sass'],
cssDir:['css'],
environment:'development',
}
},
制作:{
选项:{'b $ b sassDir:['_sass'],
cssDir:['css' ],
outputStyle:'compressed',
environment:'production',
}
}
},
uglify:{
全部:{
文件:{
'js / main.min.js':[
'js / libs / *。js',
'js / src / *。js'
]
}
},
connect:{
port:8000
}
});
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.registerTask('default',['compass:dev','uglify','connect','watch']);
grunt.registerTask('production',['compass:production','uglify']);
$ b我只是不知道该怎么做, p>
解决方案
存在与它们不兼容的依赖关系的问题:
susy 2.0.0取决于sass〜> 3.3.0
指南针0.12.3取决于sass = 3.2.14
你可以列出你所有的宝石:
pre> gem list
尝试这样做:
gem install compass --pre
这应该有效。
I am working on my website and I want to use Susy as well as Compass. I am using Grunt too. When I run my grunt task I get this error:
Denniss-MacBook-Pro:portfolio dennis$ grunt --trace
Running "compass:dev" (compass) task
Gem::LoadError on line ["1990"] of /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb: Unable to activate susy-2.1.1, because sass-3.2.17 conflicts with sass (~> 3.3.0)
Run with --trace to see the full backtrace
Warning: ↑ Use --force to continue.
Aborted due to warnings.
This is my Grunt file:
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch: {
options: {
livereload: true
},
css: {
files: ['_sass/*.{scss,sass}'],
tasks: ['compass:dev']
},
js: {
files: ['js/*.js'],
tasks: ['uglify']
}
},
compass: {
options: {
require: 'susy'
},
dev: {
options: {
sassDir: ['_sass'],
cssDir: ['css'],
environment: 'development',
}
},
production: {
options: {
sassDir: ['_sass'],
cssDir: ['css'],
outputStyle: 'compressed',
environment: 'production',
}
}
},
uglify: {
all: {
files: {
'js/main.min.js': [
'js/libs/*.js',
'js/src/*.js'
]
}
}
},
connect: {
port: 8000
}
});
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.registerTask('default', ['compass:dev', 'uglify','connect', 'watch']);
grunt.registerTask('production', ['compass:production', 'uglify']);
}
I just don't know what to do, thanks in advance!
解决方案
There is the problem with dependencies they are incompatible: susy 2.0.0 depends on sass ~> 3.3.0 compass 0.12.3 depends on sass = 3.2.14
you can list all you gems by:
gem list
try to do this:
gem install compass --pre
This should work.
这篇关于Compass和Susy需要不同版本的Sass的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文