'ERROR: Could not detect Ninja v1.8.2 or newer - Meson

When I try to run Meson, It complains that it can't find Ninja v1.8.2 or newer. I ran this:

meson build-debug

This resulted in the error explained above. I have the latest tools:

Ninja v1.10.2

Meson 0.61.2

x64 Native Tools Command Prompt for VS 2022



Solution 1:[1]

Reinstalling ninja (v1.10.2.3) via pip fixed this for me (Arch Linux, Meson 0.61.2).

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 yut23