maybe youYou should try to check the log when dogenerated by npm install ,.
I have faced the same issues, and I found the error that python2 is not found in the PATHpath (environment variable). So I install the python then
After installing Python, everything workworked fine. Hope this help!