You can install less css compiler easy:
apt-get install lessc
But that only installs version 1.1.0. How can you update to the very latest version?
(The latest version is 1.3.0)
-- update --
- I want to use the lessc command-line tool, not the client-side implentation.
Are you using it client-side (in the browser)? If so, it's a single JavaScript file, just download it.
If you're using it server-side (from a NodeJS application), or want the
lessc
command-line tool, the recommended way to install is usingnpm
(the Node Package Manager):If you don't have
npm
, it's in the Ubuntu 11.10 repositories:or Using Software Center
After a lot of head-hitting-desk moments I managed to solve this one.
Originally I had installed lessc using:
This gave me
lessc 1.2.1
from the commandlessc -v
Had to manually download the Quantal version from a repo http://www.ubuntuupdates.org/pm/node-less
(this gave me ~/Downloads/node-less_1.3.0~20120310-1_all.deb)
Then:
now I have
lessc 1.3.0
and:
goes smoothly
As of Ubuntu 12.10, the node-less package installs v1.3.0 of lessc:
That is because, it is the latest version available in repositories
http://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=names&keywords=node-less
Whatever version is present in repositories you have added, apt-get will install only that version.
However if you want to install different version, you should try for other ways
Just :
or with
sudo
For checking version :
check your version :
you have to update nodejs first
uninstall less / and istall again
check version :