Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can´t add less-compiler lessc on Netbeans 7.4

Tags:

less

netbeans

At first I downloaded Less from GitHub and saved the folder on my disk. After that, I tried to locate the compiler (file lessc) in my Netbeans IDE (7.4 Beta). After that, I got the following Error-Message:

enter image description here

like image 869
Simon Avatar asked Aug 30 '13 10:08

Simon


2 Answers

I'm not sure if Less compiler can work without NodeJS. So I would do following:

  • install NodeJS (nodejs.org)
  • install less compiler using npm

    npm install -g less

  • then NetBeans should find it, if not, you need to specify path to lessc.cmd, e.g.

    C:\Users\lada\AppData\Roaming\npm\lessc.cmd

  • to find where is your lessc.cmd, run following in command line

    where lessc.cmd

The lessc (without cmd) is for Linux and Mac OSX

like image 197
ladar Avatar answered Sep 19 '22 02:09

ladar


I downloaded lessc from here:

https://github.com/duncansmart/less.js-windows

unzipped the zip-file and copied all files to C:\bin\lessc but you can copy it anywhere you like.

Then just point Netbeans to that folder and lessc.cmd and it should work.

like image 42
cw24 Avatar answered Sep 20 '22 02:09

cw24