If you are developing on Windows, and use LESS, you've probably being using some GUI tools to translate *.less to *.css. These work quite good, but what if you still need the lessc command line, which is originally developed by LESS developers? For example, you might need one because you want to compile LESS automatically with your build scripts (or if you're just a command line geek like me)? This is easy on Linux (you may use the one provided with less.js itself), but what about Windows users?
It turns out there is a very clean way to get the lessc command on the Windows command line. It only requires you to install node.js, which is required by the original lessc anyway.
So, install node.js and install "less" module for node.js. The latter provides lessc.cmd as well, so you should only make sure it gets under your PATH in Windows.
If you don't have node.js yet, here are step-by-step instructions:
- Install node.js