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

时间:2017-01-24 15:42:45

标签: gruntjs magento2

在magento 2.1.3根文件夹中运行grunt clean后,我收到错误

If you have installed the plugin already, please setting the static mapping.
See https://github.com/shootaroo/jit-grunt#static-mappings

Warning: Task "clean" failed. Use --force to continue.

Aborted due to warnings.

我试过npm install clean& npm install clean --save-dev但得到同样的错误。

我查看了静态映射的url,但是在Magento环境中我不应该在哪里添加?

如何解决此错误?

1 个答案:

答案 0 :(得分:3)

试试这个:

npm install grunt-clean --save-dev

npm install grunt-contrib-clean --save-dev

请参阅Gruntfile.js