grunt magento2警告标志显示magento命令

时间:2017-10-31 01:19:04

标签: php gruntjs magento2

我使用grunt

时遇到了问题

警告标志是

jit-grunt: Plugin for the "&&" 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 "&&" failed. Used --force, continuing.

jit-grunt: Plugin for the "php" 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 "php" failed. Used --force, continuing.

jit-grunt: Plugin for the "bin/magento" 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 "bin/magento" failed. Used --force, continuing.

jit-grunt: Plugin for the "dev" 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 "dev:source-theme:deploy" failed. Used --force, continuing.

jit-grunt: Plugin for the "css/styles-m" 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 "css/styles-m" failed. Used --force, continuing.

Done, but with warnings.

已经完成,但它没有转换为css

当我看一下combo.js文件时,上面的任务是“&&”,“php”,“bin / magento”作为命令的一部分

请帮忙

1 个答案:

答案 0 :(得分:4)

Grunt失败,因为它试图执行两个由两个&符号&&连接的命令。

grunt-exec 2.0.0中显示a bug。升级到3.0.0对我没有帮助,但降级为~1.0.0可以解决问题。

编辑package.json,以便grunt-exec的行读取:

"grunt-exec": "~1.0.0",

然后运行npm-update以下载旧版本的软件包。 Grunt应该在那之后工作。