I’m on Ubuntu 13.04 on trying to install the less compiler via NPM was troublesome. I was getting an old version of node (0.6.x) when I needed 0.8+ for using NPM. So when I tried the following:
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs npm
sudo npm install -g less
I had problems. So reading on Chris Lea’s own site I read that I needed to follow that up with:
sudo apt-get update
sudo apt-get -y dist-upgrade