rimraf command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
rimraf: command not found
or when using sudo you get the following error message
sudo: rimraf: command not found
Solutions to rimraf: command not found
How To Fix rimraf: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu rimraf is provided by node-rimraf package.
node-rimraf is:
node-rimraf is a Node.js module that provides asynchronous deep-deletion of files and directories.
The rimraf
executable is a faster alternative to the rm -rf
shell
command.
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-rimraf
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install node-rimraf.
sudo apt -y install node-rimraf
Or if you have aptitude installed you can use the following command.
sudo aptitude install node-rimraf
Summary
In this tutorial we learn how to fix rimraf command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.