lessc command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
lessc: command not found
or when using sudo you get the following error message
sudo: lessc: command not found
Solutions to lessc: command not found
How To Fix lessc: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu lessc is provided by node-less package.
node-less is:
Node is an event-based server-side JavaScript engine.
LESS is a meta-language on top of CSS that’s used to describe the style of a document cleanly and structurally, with more power than flat CSS allows. LESS both provides a simpler, more elegant syntax for CSS and implements various features that are useful for creating manageable stylesheets.
less.js is the reference implementation of LESS, written in JavaScript.
This package contains less.js usable as Node module, and the script lessc for statically compiling LESS data into CSS.
To fix this problem, we can install more using the command below.
sudo apt-get -y install node-less
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install node-less.
sudo apt -y install node-less
Or if you have aptitude installed you can use the following command.
sudo aptitude install node-less
Summary
In this tutorial we learn how to fix lessc command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.