【问题标题】:grunt magento2 warning sign shows magento commandgrunt magento2 警告标志显示 magento 命令
【发布时间】:2017-10-31 01:19:04
【问题描述】:

我在使用 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.

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

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

请帮忙

【问题讨论】:

    标签: php gruntjs magento2


    【解决方案1】:

    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 应该可以工作了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-07-19
      • 2021-07-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-08
      相关资源
      最近更新 更多