Hmm, looking at that path .../opencv, it looks to me like the error isn't Emscripten tutorial related, but caused by the OpenCV build scripts. Easiest solution should be to install Ninja through Scoop:
First install scoop as described at the end of this page:
Then run 'scoop install ninja' and test if ninja is in the path:
ninja --version
1.10.2