'ninja: error: loading 'build.ninja': The system cannot find the file specified
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?
Solution 1:[1]
The ninja build system on your computer worked correctly! That error will occur if you run ninja with no arguments. If you add some arguments for it, such as ninja --version
and then, It worked!
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 | FlopffyGrape |