Trying to move to Yii2, i’m having a error, i think is not Yii specific but i don’t understand what i’m doing wrong.
I have nodejs installed and i can run lessc from windows dos box, if i run the command from the dos box actually it works and the file is compiled, when it runs through i get the following error.
Any help is appreciated. Thanks
Exception – yii\base\Exception
AssetConverter command 'lessc "D:/webserver/agenda/app/web/css/app.less" "D:/webserver/agenda/app/web/css/app.css" --no-color' failed with exit code 1:
STDOUT:
STDERR:
'lessc' is not recognized as an internal or external command,
operable program or batch file.
Can someone help - I’m trying to do the same thing (have read the docs, still struggling). I’m using WAMP (on windows) and I’m getting the same error above.
How do I install lessc to my @app directory and where do I get it from?
What do you mean by add it to environment variables?
I have added lessc to the system path. Run lessc in cmd from any directory, working good. I have also set the assetManager converter in config file (as in yii2 docs).