LESS2CSS Error Ultimate Solution

Source: Internet
Author: User

When using sublime Text3, after installing LESS2CSS, as many people think it's done, start to run the compile less file, and the results start to discover

  

So start searching for problems and solutions, and then you have the following solution 1

  Scenario 1: Through window path + less.js-windows (online can quickly find the way to solve this)

Note: Under the Windows operating system, you will often see the final compile less, and a "for install see Less-plugin-clean-css" error pops up, It seems like all the Windows operating systems are like this (at least window7 and window8.1) because there is a problem compressing the CSS, and if we change the parameters of the LESS2CSS, we can let the error prompt not show. Figure below

life is always very painful, sometimes can not do one,run angwhere, you understand. Under window sometimes even if the scheme can not be implemented, so there will be a Formula two derivative, because the method is always more than the problem. The method was simple and convenient after being tested by myself.

Scenario 2:NODE+NPM Global installation less easy to solve problems

1.NPM Install LESS-G: Global installation Less (make sure you have the NODE.JS+NPM environment installed)

2. Detect if less is installed globally (note the difference between the front and back)

3. Compiling less files

The above two schemes can basically solve the problem of LESS2CSS compilation in window environment. If scenario 1 does not work, you can try scenario two, scenario two will be more suitable, because some of the sublime plug-ins are actually to be supported by the node environment, such as autoprefixer such plug-in is required you install node.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.