13

I am using Ubuntu 12.04. I want to install LESS on my system. Can someone tell me how to install LESS?

jokerdino
  • 2,047
  • 1
  • 25
  • 31
  • 1
    Ubuntu's dedicated StackExchange site (http://askubuntu.com/) would probably get you the best answers :) – F21 Jul 28 '12 at 06:12
  • It's okay to post this kind of question here. – Adnan Jul 28 '12 at 06:15
  • 1
    @YasirAdnan - Sorry, this isn't a programming question and it's off topic, among other things. Check out the [faq] for the list of topics; also, see [Stack Exchange Sites](http://stackexchange.com/sites) for the full list of available Stack Exchange sites. – jamesmortensen Jul 29 '12 at 03:16
  • 2
    `sudo apt-get install node-less` – Zags Oct 13 '14 at 19:27

1 Answers1

16
sudo apt-get update
sudo apt-get install git-core curl build-essential openssl libssl-dev
git clone https://github.com/joyent/node.git
cd node
./configure
make
sudo make install
node -v

Now Download NPM, which we'll use to install LESS

curl http://npmjs.org/install.sh | sudo sh
npm -v
npm install less

You've to update the PATH to LESS

gedit ~/.bashrc
PATH=$PATH:$HOME/node_modules/less/bin
source ~/.bashrc

You should now be able to invoke LESS from the terminal window like so:

lessc LESSFILE.less > CSSFILE.css

(Source: sprResponsive)

Jonah
  • 9,991
  • 5
  • 45
  • 79
Adnan
  • 8,468
  • 9
  • 29
  • 45