Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 701
Pulkit Pant Avatar asked Jul 30 '18 07:07

Pulkit Pant


1 Answers

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!

like image 140
FlopffyGrape Avatar answered Jan 05 '23 01:01

FlopffyGrape