当我运行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 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'
});
您需要将compass
插件作为依赖项安装。您可以通过在工作目录中执行以下命令来实现这一点。
npm install grunt-contrib-compass --save-dev
希望这对你有帮助!