Search code examples
javascriptnode.jsnpmwindows-10node-gyp

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


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


Solution

  • To install node addons, you need to have VC/VCExpress installed and not just the VC runtime/redistributable. Make sure it's the "Windows Desktop" edition.

    After that, you should be able to install addons via npm (you may have to re-open any command prompts you had open before installing VCExpress though).