Installing latest lessc on Ubuntu (Docker)
When you're installing "lessc" (LESS compiler) on Ubuntu using the node-LESS package. An outdated version is installed on your system. I ran into this problem when I wanted to do server-side compilation of my .LESS stylesheets. The outdated version didn't compile the stylesheets properly so I needed to replace it.
The problem however was that the environment runs in a Docker container and is build using commands in a Dockerfile. The process therefore needs to be automated using simple instructions.
The solution was simple. Instead of installing node-LESS I installed nodejs (on Ubuntu, don't forget nodejs-legacy) and NPM. I then ran:
npm install less -g
For a global, latest version of the LESS compiler.