I am using Ubuntu 12.04. I want to install LESS on my system. Can someone tell me how to install LESS
?
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 – Daniel Rippstein May 8 '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 7:03
sudo apt-get install node-less
– Zags Oct 13 '14 at 19:27