Workaround for eternal problem with node-gyp on Windows

This is super annoying. Reliance on node-gyp on Windows is such a pain! The error description says the it can not find the Python executable, even though it is there.

There is a workaround

  1. Open cmd as Administrator (Otherwise the installation fails, meh)
  2. run command npm install –global –production windows-build-tools
  3. This will install Visual Studio Build Tools (yes, I know, there is mismatch in names)
  4. This will also install Python again as a side-effect (meh)
  5. run npm rebuild in the project’s folder
  6. re-open cmd and run npm install
  7. all should be fine now
npm hell
npm hell