With less, it's easier and quicker than CSS. What are the steps for NPM to install less?
1. Install node. js and configure the environment variables (try not to mount the C drive)
2, then install less, there is no need to install NPM, because the new version of Nodejs has integrated NPM, so no need to download separately, directly on the command line to enter NPM install-g less and then return, and then wait for the installation to complete.
appears, indicating successful installation
3, configure Webstrom, open Webstorm, find File-settings-tools-file watchers, click on the right of the + sign, add less monitoring, pop-up dialog box, such as successful installation, Webstorm automatically configure the path, Do not change the contents of the dialog box, direct OK is good. To this less compiler configuration is complete, you can use in the webstorm in less language, as long as the change and save less file, Webstorm will be automatically compiled, very convenient.
Since then, less has been configured so that it can be used directly.
NPM installs less and is configured in Webstrom