2016-11-04 49 views
0

當我運行咕嚕生成我得到這個錯誤,任何想法我該如何解決這個問題?jit-grunt:找不到「clean」任務的插件?

咕嚕打造

Running "concurrent:dist" (concurrent) task 
    Warning: 
    jit-grunt: Plugin for the "compass" task not found. 
    If you have installed the plugin already, please setting the static mapping. 
    See https://github.com/shootaroo/jit-grunt#static-mappings 

    Warning: Task "compass:dist" failed. Use --force to continue. 

    Aborted due to warnings. 

Gruntfile.js

require('jit-grunt')(grunt, { 
    express: 'grunt-express-server', 
    useminPrepare: 'grunt-usemin', 
    ngtemplates: 'grunt-angular-templates', 
    cdnify: 'grunt-google-cdn', 
    protractor: 'grunt-protractor-runner', 
    buildcontrol: 'grunt-build-control', 
    istanbul_check_coverage: 'grunt-mocha-istanbul', 
    ngconstant: 'grunt-ng-constant' 
    }); 

回答

2

您需要安裝插件compass作爲一個依賴。您可以通過從工作目錄執行以下命令來實現此目的。

npm install grunt-contrib-compass --save-dev 

希望這會有所幫助!