不寻找 VS2013 npm install node 模块 [英] Not looking for VS2013 npm install node modules

查看:799
本文介绍了不寻找 VS2013 npm install node 模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在运行命令npm install"时遇到问题.我想安装 gulp 和 bower 模块,但是当我运行npm install"或npm install bower"时,出现了 VS2013 错误.为什么我收到这个错误?如何解决这个问题呢?低于我安装的指定版本:

I have a problem when ran command "npm install". I want install gulp and bower modules, but when i ran "npm install" or "npm install bower" I got an error VS2013. Why I got this error? How to solve this problem? below specified version I installed:

节点 v10.15npm v6.10.3蟒蛇 v2.7VSCODE v1.37.1(用户设置)

node v10.15 npm v6.10.3 python v2.7 VSCODE v1.37.1 (user setup)

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

I already add proxy on config: + npm config set https-proxy http://xxxxx + npm config set proxy http://xxxxx + npm config set registry="http://registry.npmjs.org/" + npm config set ca "" + npm config set strict-ssl false

在此错误日志下方:

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

gyp ERR! find VS msvs_version not set from command line or npm config gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer gyp ERR! find VS looking for Visual Studio 2015 gyp ERR! find VS - not found gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8 gyp ERR! find VS gyp ERR! find VS gyp ERR! find VS You need to install the latest version of Visual Studio gyp ERR! find VS including the "Desktop development with C++" workload. gyp ERR! find VS For more information consult the documentation at: gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows gyp ERR! find VS gyp ERR! find VS gyp ERR! configure error gyp ERR! stack Error: Could not find any Visual Studio installation to use gyp ERR! stack at VisualStudioFinder.fail (C:\Users\c93134\AppData\Roaming\n pm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)

推荐答案

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

For that to work you must install Visual Studio Tools (2015 version worked for me). You can find them on Microsoft site.

在此处输入链接描述

希望这会有所帮助.

这篇关于不寻找 VS2013 npm install node 模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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