msbuild /version 5.2.2 & cl powershell (Windows)Verbose output (from npm or node-gyp):
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
Latest version of node installer will offer to install things like windows-build-tools and python. It installs the latest version of python. So I had both 2.7 and 3.8 installed and node-gyp was failing because it was finding 3.8. I had to uninstall the latest version of python to get node-gyp to work again. This feels very wrong. It's 2020, can we please get node-gyp compatible with the latest version of python? And until then the install instructions for windows should list python 2.7.15 as a requirement, not just for linux.
node-gyp is compatible with Python 3. If you're using node-sass the issue is with them as they're still using older releases of node-gyp: https://github.com/sass/node-sass/issues/2716
Most helpful comment
node-gypis compatible with Python 3. If you're usingnode-sassthe issue is with them as they're still using older releases ofnode-gyp: https://github.com/sass/node-sass/issues/2716