npm install时出现以下错误:

gyp verb find VS looking for Visual Studio 2015
gyp verb find VS - not found
gyp verb find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
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, try re-running with '--loglevel silly' for more details
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 (E:\project\DBApi-master\dbapi-ui\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
gyp ERR! stack     at E:\project\DBApi-master\dbapi-ui\node_modules\node-gyp\lib\find-visualstudio.js:74:16
gyp ERR! stack     at VisualStudioFinder.findVisualStudio2013 (E:\project\DBApi-master\dbapi-ui\node_modules\node-gyp\lib\find-visualstudio.js:351:14)
gyp ERR! stack     at E:\project\DBApi-master\dbapi-ui\node_modules\node-gyp\lib\find-visualstudio.js:70:14
gyp ERR! stack     at E:\project\DBApi-master\dbapi-ui\node_modules\node-gyp\lib\find-visualstudio.js:372:16
gyp ERR! stack     at E:\project\DBApi-master\dbapi-ui\node_modules\node-gyp\lib\util.js:54:7
gyp ERR! stack     at E:\project\DBApi-master\dbapi-ui\node_modules\node-gyp\lib\util.js:33:16
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:390:5)
gyp ERR! stack     at ChildProcess.emit (events.js:400:28)
gyp ERR! stack     at maybeClose (internal/child_process.js:1058:16)
gyp ERR! System Windows_NT 10.0.19042
gyp ERR! command "D:\\nodejs\\node.exe" "E:\\project\\DBApi-master\\dbapi-ui\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! node -v v14.18.1
gyp ERR! node-gyp -v v7.1.2
gyp ERR! not ok
Build failed with error code: 1
tion not permitted, rmdir 'E:\project\DBApi-master\dbapi-ui\node_modules\sass-graph\node_modules'npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\watchpack-chokidar2\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\webpack-dev-server\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@5.0.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@5.0.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\WRD\AppData\Roaming\npm-cache\_logs\2021-10-20T07_12_58_295Z-debug.log

根据提示在https://github.com/nodejs/node-gyp#on-windows
解决:

npm install -g node-gyp
npm install --global --production windows-build-tools

npm install出现not looking for VS2013 as it is only supported up to Node.js 8相关推荐

  1. $ npm install opencv ? 你试试?! 在windows环境下,使用node.js调用opencv攻略

    博主之前写过一篇文章<html5与EmguCV前后端实现--人脸识别篇>,叙述的是opencv和C#的故事.最近在公司服务器上更新了一套nodejs环境,早就听闻npm上有opencv模块 ...

  2. Node.js 笔记(一) nodejs、npm、express安装

    Windows平台下的node.js安装 直接去nodejs的官网http://nodejs.org/上下载nodejs安装程序,双击安装就可以了 测试安装是否成功: 在命令行输入 node –v 应 ...

  3. npm install对本地工程文件造成了哪些修改

    npm install之前: {"name": "template","version": "1.0.0"," ...

  4. 使用vue-cli3创建项目的时候出错,ERROR command failed: npm install --loglevel error --registry

    重点:方法三 命令: vue create vue-hello 错误提示: ERROR command failed: npm install --loglevel error --registry ...

  5. npm ERR! code ERR_STREAM_WRITE_AFTER_END npm install 报错实力踩坑npm,自从用了npm之后项目构建和插件管理确实方便了很多,但也是被坑的不要不要的

    实力踩坑npm,自从用了npm之后项目构建和插件管理确实方便了很多,但也是被坑的不要不要的.由于平时只是用用,并没有深入了解node的npm,所以遇到问题都比较棘手,能够查到的资料也不多.阐述以下我遇 ...

  6. node安装:npm install xxx命令出现npm ERR code EPERM错误

    下载安装node和npm,执行node -v和npm -v成功, node下载:下载 | Node.js 中文网 安装教程:node.js 安装详细步骤教程_老油条-CSDN博客_node安装 但执行 ...

  7. node npm install引用安装依赖包更改为私有库地址

    背景:项目使用了bpmn.js作为前端的流程引擎,但是需要更改配置文件和映射关系,或者直接修改源码,但是通过npm install安装的是默认的git 地址,于是就需要将bpmn.js拷贝一份到公司的 ...

  8. 解决问题: Error: command failed: npm install --loglevel error --legacy-peer-deps

    在启动vue脚手架的时候,出现了一个错误: 在经过查询后 删除了.npmrc文件并且修改了.vuerc文件,但是依然不起作用 再修改vuerc文件 将useTaobaoRegistry修改为false ...

  9. 安装npm_前端开发:node.js的node包管理器npm安装以及使用

    在前端开发过程中,node.js进行包管理的时候会使用npm管理器来操作.npm(node package manager)包管理器,主要是用于第三方模块的下载.安装和管理,它具有强大的第三方资源,重 ...

最新文章

  1. Android10.0 Binder通信原理(二)-Binder入门篇
  2. 【最短路】hxk化学课
  3. 【NoSQL】NoSQL入门和概述 - 笔记
  4. python矩阵计算_PYTHON 矩阵运算
  5. 控制for each循环次数_CCF CSP编程题解201312-1:出现次数最多的数
  6. 雷鸟邮件查找所有星标邮件_雷鸟的4种轻量级电子邮件替代品
  7. SQLServerException:将截断字符串或二进制数据
  8. html首字母大写,CSS实现英文单词的首字母大写
  9. Office 针式打印机如何插入色带
  10. Linux管道通信多次读写,linux进程通信之(二):管道的读与写
  11. 千江有水千江月 万里无云万里天
  12. 2022-2028年全球及中国光纤布拉格光栅(FBG)加速度计行业投资前景分析
  13. Android 实现自动抢微信红包
  14. JQData提供哪些数据
  15. python海龟作图画爱心_用python的turtle,画爱心,表白,求婚完整代码,海龟作图创意...
  16. 磁通量,磁通,磁感应强度,磁场强度,磁导率
  17. 测试人员例会会议议题制定规范
  18. HTMLCSS选择器
  19. Valgrind 内存管理工具Memcheck 基本使用
  20. Python 实现语音转文本

热门文章

  1. ANTs配准图像CT
  2. powershell安装主题 (很简单)
  3. 深度使用指南:.NET的Colors类
  4. 2017中国(中部)国际农业机械展览会会刊(参展商名录)
  5. Active Directory 02 - Windows Kerberos Authentication(Kerberos 协议鉴权)
  6. CTSV当中Camera FOV的计算方法
  7. 嵌入式实时操作系统的设计与开发(九)
  8. C#项目实战WebApi框架搭建以及部署WebApi服务器的几种方式
  9. 本地局域网如何更改计算机名称,大师为你详解win7系统局域网计算机名称更改的方案介绍...
  10. 服务器草稿位置在c盘可以吗,在网易邮箱中,如何设置能实现把发出的邮件保存在硬盘文件夹中,以便事后可以查阅?...