LESS - como instalar

bom dia! Sou novo em programação, estou lendo a apostila da Caelum, cheguei na parte de LESS, mas não sei instalar o LESS no pc. Já li varios tutoriais mas a maioria explica de uma forma muito complexa. Me ajudem! (meu sistema operacional é Windows, já baixei o node )

Não entendo como a instalação pode ser complexa, talvez vc deva dar mais detalhes sobre o seu problema, mas…

Se vc tem mesmo o Node instalado, ele já vem com o NPM, basta abrir o Prompt de Comando digitar o seguinte:

npm install -g less

Para testar o resultado, use:

lessc styles.less styles.css

Para mais informações, visite o site oficial: http://lesscss.org/

Caso o problema persista, refaça a pergunta dando maiores detalhes.


Command Line Usage

Compile .less files to .css using the command line

Heads up! If the command line isn’t your thing, learn more about GUIs for Less.

Installing

Install with npm

npm install less -g

The -g option installs the lessc command available globally. For a specific version (or tag) you can add @VERSION after our package name, e.g. npm install less@2.7.1 -g.

Installing for Node Development

Alternatively, if you don’t want to use the compiler globally, you may be after

npm i less --save-dev

This will install the latest official version of lessc in your project folder, also adding it to the devDependencies in your project’s package.json.

Beta releases of lessc

Periodically, as new functionality is being developed, lessc builds will be published to npm, tagged as beta. These builds will not be published as a @latest official release, and will typically have beta in the version (use lessc -v to get current version).

Since patch releases are non-breaking we will publish patch releases immediately and alpha/beta/candidate versions will be published as minor or major version upgrades (we endeavour since 1.4.0 to follow semantic versioning).

Server-Side and Command Line Usage

The binary included in this repository, bin/lessc works with Node.js on *nix, OS X and Windows.

Usage: lessc [option option=parameter ...] <source> [destination]

Command Line Usage

lessc [option option=parameter ...] <source> [destination]

If source is set to `-’ (dash or hyphen-minus), input is read from stdin.

Examples

Compile bootstrap.less to bootstrap.css

lessc bootstrap.less bootstrap.css

Options specific to lessc

For all other options, see Less Options.

Silent

lessc -s
lessc --silent

Stops any warnings from being shown.

Version

lessc -v
lessc --version

Help

lessc --help
lessc -h

Prints a help message with available options and exits.

Makefile

lessc -M
lessc --depends

Outputs a makefile import dependency list to stdout.

No Color

Deprecated.

lessc --no-color

Clean CSS

In v2 of less, Clean CSS is no longer included as a direct dependency. To use clean css with lessc, use the clean css plugin.

Valeu, consegui executar