2016-04-10 33 views
1

我已經安裝了npm和grunt,然後安裝了grunt-contrib-compass。 但是當我運行咕嚕聲。我有這個錯誤grunt-contrib-compass不能在npm中工作

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']); 
} 

回答

2

您需要安裝指南針紅寶石寶石般細緻here。基本上你需要安裝Ruby,然後使用它你可以安裝Compass gem和grunt-contrib-compass應該可以工作