htmlproofer command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
htmlproofer: command not found
or when using sudo you get the following error message
sudo: htmlproofer: command not found
Solutions to htmlproofer: command not found
How To Fix htmlproofer: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu htmlproofer is provided by ruby-html-proofer package.
ruby-html-proofer is:
HTMLProofer is a set of tests to validate your HTML output. These tests check if your image references are legitimate, if they have alt tags, if your internal links are working, and so on. It’s intended to be an all-in-one checker for your output.
In scope is any well-known and widely-used test for HTML document quality. A major use is continuous integration, so reliable results are a must have. Correctness is usually balanced over performance. And, if necessary, one should be able to trace this program’s detection of HTML errors back to documented best practices or standards, such as W3 specifications.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ruby-html-proofer
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ruby-html-proofer.
sudo apt -y install ruby-html-proofer
Or if you have aptitude installed you can use the following command.
sudo aptitude install ruby-html-proofer
Summary
In this tutorial we learn how to fix htmlproofer command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.