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:
node-gyp requires that you have installed a compatible version of Python, one of: v3. 7, v3. 8, v3. 9, or v3.
node-gyp-build works similar to node-gyp build except that it will check if a build or prebuild is present before rebuilding your project. It's main intended use is as an npm install script and bindings loader for native modules that bundle prebuilds using prebuildify .
node-gyp folder is the devDir of node-gyp (see relevant source code). This is where development header files are copied in order to perform the compilation of native modules. you can safely delete this directory, as it will be re-created the next time you'll install a module that needs node-gyp .
This worked for me:
npm install --global --production windows-build-tools
I solved this problem on windows 8 and windows 10 pro with this tutorial.
I try a lot of times to solve this problem with many different solutions, but only worked for me this
I notice that i didn't use nodist to control the node version like this tutorial, I use NVM and worked fine, i don't test this tutorial with nodist. I used node 5.2.0.
Following the suggested by @prasun, the steps in correct order:
This is the only steps work for me in windows 8.1 and windows 10.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With