【问题标题】:jit-grunt: Plugin for the "clean" task not found?jit-grunt:找不到“清洁”任务的插件?
【发布时间】:2017-03-18 09:32:27
【问题描述】:

当我运行 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'
  });

【问题讨论】:

    标签: javascript node.js gruntjs grunt-usemin


    【解决方案1】:

    您需要安装 compass 插件作为依赖项。您可以通过从工作目录执行以下命令来实现此目的。

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

    希望这会有所帮助!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-03-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多