html-to-markdown command not found

In this troubleshooting guide we learn how to fix html-to-markdown command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

html-to-markdown: command not found

or when using sudo you get the following error message

sudo: html-to-markdown: command not found

Solutions to html-to-markdown: command not found

How To Fix html-to-markdown: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu html-to-markdown is provided by php-league-html-to-markdown package.

php-league-html-to-markdown is:

Library which converts HTML to Markdown.

To fix this problem, we can install more using the command below.

sudo apt-get -y install php-league-html-to-markdown

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install php-league-html-to-markdown.

sudo apt -y install php-league-html-to-markdown

Or if you have aptitude installed you can use the following command.

sudo aptitude install php-league-html-to-markdown

Summary

In this tutorial we learn how to fix html-to-markdown command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.