Skip to content
Advertisement

grunt magento2 warning sign shows magento command

I got a problem using grunt

The warning sign is

JavaScript

It’s done but It doesn’t convert less into css

When I take a look at combo.js file, the tasks above which is “&&”, “php”, “bin/magento” is there as a part of command

Please help

Advertisement

Answer

Grunt fails because it tries to execute two commands joined by double ampersand &&.

This is a bug that appears in grunt-exec 2.0.0. Upgrading to 3.0.0 didn’t help me, but downgrading to ~1.0.0 fixed the problem.

Edit package.json so the line for grunt-exec reads:

JavaScript

Then run npm-update to download the older version of the package. Grunt should work after that.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement