watchman-make command not found

In this troubleshooting guide we learn how to fix watchman-make command not found error message

Introduction

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

watchman-make: command not found

or when using sudo you get the following error message

sudo: watchman-make: command not found

Solutions to watchman-make: command not found

How To Fix watchman-make: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu watchman-make is provided by python3-pywatchman package.

python3-pywatchman is:

A Python library for watchman (the file watching service), and related utilities such as watchman-make and watchman-wait. Watchman can be used to watch files and record when they actually change. It can be used to trigger actions (such as rebuilding assets) when matching files change. If you require to perform an action based on whether a file changes or not, watchman may be the tool you need. By giving watchman a pattern and an action to take when the files change, you can trigger an activity to be taken.

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

sudo apt-get -y install python3-pywatchman

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

You can also use apt command to install python3-pywatchman.

sudo apt -y install python3-pywatchman

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

sudo aptitude install python3-pywatchman

Summary

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