如何在Windows 10上解决'node-gyp rebuild'问题? [英] How to solve 'node-gyp rebuild' issue on Windows 10?

查看:3285
本文介绍了如何在Windows 10上解决'node-gyp rebuild'问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为尝试在项目中使用节点NPM依赖项的一部分,我得到一个 node-gyp rebuild 问题,我有

解决方案

要安装节点插件,您需要安装VC / VCExpress,而不仅仅是VC运行时/可再发行组件。确保它是Windows桌面版本。



之后,你应该能够通过npm安装插件(你可能需要重新打开任何命令提示你有在安装VCExpress之前打开但是。)


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:

解决方案

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).

这篇关于如何在Windows 10上解决'node-gyp rebuild'问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆