tap-mocha-reporter command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
tap-mocha-reporter: command not found
or when using sudo you get the following error message
sudo: tap-mocha-reporter: command not found
Solutions to tap-mocha-reporter: command not found
How To Fix tap-mocha-reporter: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu tap-mocha-reporter is provided by node-tap-mocha-reporter package.
node-tap-mocha-reporter is:
This module allows one to format node-tap output like output of Mocha test framework.
node-tap is a Node.js implementation of TAP a simple text-based interface shared between testing modules implemented in many popular languages.
Mocha is a feature-rich JavaScript test framework running on Node.js and browser, making asynchronous testing simple.
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-tap-mocha-reporter
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install node-tap-mocha-reporter.
sudo apt -y install node-tap-mocha-reporter
Or if you have aptitude installed you can use the following command.
sudo aptitude install node-tap-mocha-reporter
Summary
In this tutorial we learn how to fix tap-mocha-reporter command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.