2016-04-10 23 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あなたは詳細なhereとして、コンパスのRuby Gemをインストールする必要が

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

を持っています。基本的にはRubyをインストールしておく必要があります。コンパスの宝石とgrunt-contrib-compassをインストールすることができます。

関連する問題