node-sass command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
node-sass: command not found
or when using sudo you get the following error message
sudo: node-sass: command not found
Solutions to node-sass: command not found
How To Fix node-sass: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu node-sass is provided by node-node-sass package.
node-node-sass is:
Node-sass is a library that provides binding for Node.js to LibSass.
LibSass is the C version of the popular stylesheet preprocessor, Sass.
It allows you to natively compile .scss files to css at incredible speed and automatically via a connect middleware.
Node.js is an event-based server-side JavaScript engine.
To fix this problem, we can install more using the command below.
sudo apt-get -y install node-node-sass
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install node-node-sass.
sudo apt -y install node-node-sass
Or if you have aptitude installed you can use the following command.
sudo aptitude install node-node-sass
Summary
In this tutorial we learn how to fix node-sass command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.