I ran into the exact same error even after I had already completed some React tests that were working just fine.
I don't know if this is what happened to you, but if anyone else comes across this, I simply forgot to right click on Command Prompt and choose Run as Administrator. d'oh!