zoukankan      html  css  js  c++  java
  • gyp ERR! find VS gyp ERR! find VS msvs_version not set from command line or npm config gyp ERR! find

    npm install报错
    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 checking VS2019 (16.3.29411.108) found at:
    gyp ERR! find VS “D:viso”
    gyp ERR! find VS - found “Visual Studio C++ core features”
    gyp ERR! find VS - missing any VC++ toolset
    gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
    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

    解决:
    1、删除C:Usersweb中的.npmrc文件 重新卸载重装node
    2、通过 npm profix 找到npm位置,删除npm文件夹和npm-cache(要以管理员身份删除)
    3、找到nodejs文件位置,删除里面文件,然后下载node.js,直接安装。
    4、设置淘宝镜像
    npm config set registry https://registry.npm.taobao.org
    5、安装好打开再次npm install就成功了!可能是我npm版本太新了

    声明 欢迎转载,但请保留文章原始出处:) 博客园:https://www.cnblogs.com/chenxiaomeng/ 如出现转载未声明 将追究法律责任~谢谢合作
  • 相关阅读:
    C 语言中字符的输入输出
    C 语言 ctype.h 中系列字符处理函数
    C 语言中 for 循环的几种用法
    C 中优先级和关系运算符
    字符串和格式化输入/输出 [printf & scanf]
    C++中关于string类的一些API总结
    两大基本数据类型
    这些时候的总结
    PL/SQL 十进制数转任意进制
    复现题目[CISCN 2019 华东北赛区 Web2 WriteUp](https://www.zhaoj.in/read-6100.html)的一些东西
  • 原文地址:https://www.cnblogs.com/chenxiaomeng/p/15347158.html
Copyright © 2011-2022 走看看