我使用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”作为命令的一部分
请帮忙
解决方法:
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应该在那之后工作.