Javascript jit grunt:;“干净”;找不到任务?
当我运行grunt build时,我遇到了这个错误,你知道如何解决这个问题吗 咕噜声Javascript jit grunt:;“干净”;找不到任务?,javascript,node.js,gruntjs,grunt-usemin,Javascript,Node.js,Gruntjs,Grunt Usemin,当我运行grunt build时,我遇到了这个错误,你知道如何解决这个问题吗 咕噜声 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 http
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.
Grunfile.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'
});
您需要作为依赖项安装
compass
插件。您可以通过从工作目录执行以下命令来实现这一点
npm install grunt-contrib-compass --save-dev
希望这有帮助