如何解决 Windows 10 上的“node-gyp 重建"问题?

How to solve #39;node-gyp rebuild#39; issue on Windows 10?(如何解决 Windows 10 上的“node-gyp 重建问题?)
本文介绍了如何解决 Windows 10 上的“node-gyp 重建"问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

作为尝试在项目中使用节点 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 重建"问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

SCRIPT5: Access is denied in IE9 on xmlhttprequest(SCRIPT5:在 IE9 中对 xmlhttprequest 的访问被拒绝)
XMLHttpRequest module not defined/found(XMLHttpRequest 模块未定义/未找到)
Show a progress bar for downloading files using XHR2/AJAX(显示使用 XHR2/AJAX 下载文件的进度条)
How can I open a JSON file in JavaScript without jQuery?(如何在没有 jQuery 的情况下在 JavaScript 中打开 JSON 文件?)
quot;Origin null is not allowed by Access-Control-Allow-Originquot; in Chrome. Why?(“Access-Control-Allow-Origin 不允许 Origin null在铬.为什么?)
How to get response url in XMLHttpRequest?(如何在 XMLHttpRequest 中获取响应 url?)