I am using Ubuntu 12.04. I want to install LESS on my system. Can someone tell me how to install LESS
?
Asked
Active
Viewed 1.9k times
13

jokerdino
- 2,047
- 1
- 25
- 31
-
1Ubuntu'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 Answers
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)
-
-
The npmjs link you have no longer works. The new one is: [https://www.npmjs.org/install.sh](https://www.npmjs.org/install.sh) – Daniel Rippstein May 08 '14 at 16:59
-
5
-
NPMjs link moved yet again. Use: `curl https://www.npmjs.com/install.sh | sudo sh` – Aswin Kumar Dec 15 '14 at 07:03