grunt magento2警告标志显示magento命令

Jin*_*nna 5 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.
Run Code Online (Sandbox Code Playgroud)

它已经完成,但它不会转换为css

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

请帮忙

小智 4

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

这是出现在grunt-exec 2.0.0. 升级到3.0.0没有帮助我,但降级~1.0.0解决了问题。

编辑 package.json,使 grunt-exec 的行显示为:

"grunt-exec": "~1.0.0",
Run Code Online (Sandbox Code Playgroud)

然后运行npm-update下载旧版本的包。Grunt 之后应该可以工作了。