commonmark command not found

In this troubleshooting guide we learn how to fix commonmark command not found error message

Introduction

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

commonmark: command not found

or when using sudo you get the following error message

sudo: commonmark: command not found

Solutions to commonmark: command not found

How To Fix commonmark: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu commonmark is provided by php-league-commonmark package.

php-league-commonmark is:

Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and Github-Flavored Markdown (GFM).

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

sudo apt-get -y install php-league-commonmark

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

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

sudo apt -y install php-league-commonmark

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

sudo aptitude install php-league-commonmark

Summary

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