我安装了npm和grunt,然后安装了grunt-contrib-compass。但是当我跑起来的时候。我有这个错误
Running “compass:dist” (compass) task
Warning: not found: compass Use –force to continue.
Aborted due to warnings这是我的gruntfile.js
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
compass: {
dist: {
options: {
sassDir: 'sass',
cssDir: 'css'
}
}
},
watch: {
css: {
files: '**/*.scss',
tasks: ['compass']
}
}
});
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default',['watch']);
}发布于 2016-11-03 00:59:48
您需要按照详细的here安装Compass Ruby gem。基本上,您需要安装Ruby,然后使用Ruby安装Compass gem,grunt-contrib-compass应该可以工作
https://stackoverflow.com/questions/36527712
复制相似问题