jit-grunt:找不到“干净”任务的插件?

时间:2016-11-04 13:57:17

标签: javascript node.js gruntjs grunt-usemin

当我运行grunt build时出现此错误,任何想法如何解决此问题?

grunt build

var myModule = require('../myModule.js');    

describe('My Module test', function () {

  it('should get greet value', function () {
    myModule.on('test', function () { // "test" as I wrote in myModule
      expect(myModule.greet).toHaveBeenCalled();
    });
  });
});

Gruntfile.js

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.

1 个答案:

答案 0 :(得分:3)

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

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

希望这有帮助!