Download the archive for your os. Extract the content. Then run the binary file "./ninja.x.x.x.os.amd64" using a terminal (console).