不寻找 VS2013 npm install 节点模块

Alb*_*tus 3 visual-studio node.js visual-studio-code npm-install

运行命令“npm install”时遇到问题。我想安装 gulp 和 Bower 模块,但是当我运行“npm install”或“npm install Bower”时,我收到错误 VS2013。为什么我收到这个错误?如何解决这个问题呢?我安装的指定版本如下:

Node v10.15 npm v6.10.3 python v2.7 VSCODE v1.37.1(用户设置)

我已经在配置上添加代理: + npm config set https-proxy http://xxxxx + npm config set proxy http://xxxxx + npm config setregistry="http://registry.npmjs.org/" + npm config设置 ca "" + npm config 设置 strict-ssl false

下面这个错误日志:

吉普 错误!发现 VS msvs_version 未从命令行或 npm config gyp 设置 ERR!发现 VS VCINSTALLDIR 未设置,未在 VS 命令提示符中运行 gyp ERR!查找 VS 无法使用 PowerShell 查找 Visual Studio 2017 或更高版本的 gyp ERR!找到VS寻找Visual Studio 2015 gyp ERR!找到 VS - 找不到 gyp 错误!find VS 不是寻找 VS2013,因为它仅支持 Node.js 8 gyp ERR!找到 VS gyp ERR!找到 VS gyp ERR!找到VS需要安装最新版本的Visual Studio gyp ERR!找到 VS 包括“使用 C++ 进行桌面开发”工作负载。吉普 错误!查找 VS 有关更多信息,请参阅以下文档:gyp ERR! 找到 VS https://github.com/nodejs/node-gyp#on-windows gyp 错误!找到 VS gyp ERR!找到 VS gyp ERR!配置错误 gyp ERR! 堆栈错误:找不到任何 Visual Studio 安装来使用 gyp ERR!堆栈位于 VisualStudioFinder.fail (C:\Users\c93134\AppData\Roaming\n pm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)

小智 5

为此,您必须安装 Visual Studio Tools(2015 版本对我有用)。您可以在 Microsoft 网站上找到它们。

go.microsoft.com/fwlink/?LinkId=691126

希望这可以帮助。