2016-04-10 20 views
1

npm'de çalışmıyor, npm ve grunt'ı kurdum ve daha sonra grunt-contrib-pusula yükledim. ama grunt koştuğumda. ben bu hatayıgrunt-contrib-pusula npm

Running “compass:dist” (compass) task 
Warning: not found: compass Use –force to continue. 
Aborted due to warnings 

ve bu benim gruntfile.js detaylı here olarak, Pusula Yakut mücevher yüklemeniz gerekir

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

cevap

2

var. Temel olarak, Ruby'yi yüklemeniz gerekiyor ve daha sonra Compass gem'i yükleyebilmeniz ve grunt-contrib-pusu kullanmanız gerekir.