How to solve 'node-gyp rebuild' issue on Windows 10?

Jérôme Verstrynge picture Jérôme Verstrynge · Sep 8, 2015 · Viewed 20.3k times · Source

As part of trying to use a node NPM dependency in a project, I get a node-gyp rebuild issue, which I have reported.

I am aware of the solution in this SO question, but it does not work for Windows 10 (I am on 32 bits, I don't know whether this is relevant). Windows SDK 7.1 (and others) won't install.

Does anyone have an operational solution for Windows 10?

Udpate

After trying npm install <module name> --msvs_version=2013, I get a new error message:

enter image description here

Answer

quidkid picture quidkid · Sep 15, 2018

This worked for me:

npm install --global --production windows-build-tools