Answer the question
In order to leave comments, you need to log in
How to fix error when using File Watchers in PhpStorm, LESS + YUI Compressor?
What it was installed on: Windows 7 64 bit, phpStrom 7.1.3
I configured phpStorm to automatically compile LESS to CSS, like this:
1. Installing NODE.JS in C:\Program Files\nodejs
2. Installing the LESS compiler (npm install -g less)
3. PhpStorm > Plugins > enable "LESS support"
4. PhpStorm > File Watchers > Add "LESS"
5. Options are:
Everything works fine.
But then I also wanted to set up YUI Compressor to automatically compress CSS, so I set it up:
1. Installing the LESS compiler (npm install -g yuicompressor)
2. PhpStorm > File Watchers > Add "YUI Compressor CSS"
4. The parameters are as follows:
When writing the file "my.less", the file "my.css" is created, but the file "my.min.css" is not created and the following error is written in the console:
C:/Users/USR3/AppData/Roaming/npm/yuicompressor.cmd my.css -o my.min.css
events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:988:11)
at Process.ChildProcess._handle.onexit (child_process.js:779:34)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question