I installed chocolatey and then ninja using choco install ninja.
It got installed at
C:\ProgramData\chocolatey\lib\ninja\tools
.
I added the path to the Environment variables too. When I launch ninja now, it throws and error:
ninja: error: loading 'build.ninja': The system cannot find the file specified.
I just typed ninja on the powerShell prompt and this error is thrown! Does anyone have any idea of what's happening actually?
choco install ninja
and tried copying ninja.exe file directly (github.com/ninja-build/ninja/releases), both added to the path. – Ehrman