然后在CMD中设置 npm config set msvs_version 2017 如果后面的版本号错误,就根据提示修改为对应的版本号,例如下面这张图,就需要修改为2019 3、提示:Python环境安装不上 注:那就自己下载一个Python安装,网上有很多安装教程,推荐使用下载.mis一键安装
npm install -g windows-build-tools 这个步骤将安装python2.7和msbuild等内容. 4.设置环境变量 在cmd中, 执行指令: npm config set python python2.7npm config set msvs_version 2017 第一句指令, 指定了使用python2.7作为编译环境(在上一步中已经安装), electron并不支持python3.x. 在指定了环境变量之后, 用...
问国家预防机制错误!久尔!从命令行或npm配置中查找VS msvs_version未设置EN我们通常会关注ERR日志,但很遗憾,这些日志反而导致排查方向错误。实际上,关键的信息并不在这里。 关键在第一行make打印的日志,由于这不是npm打印的信息,没有ERR标识,所以容易被忽略。安装...
Install Visual C++ Build Environment:Visual Studio Build Tools(using "Visual C++ build tools" workload) orVisual Studio 2017 Community(using the "Desktop development with C++" workload) Launch cmd,npm config set msvs_version 2017 If the above steps didn't work for you, please visitMicrosoft'...
针对你提出的“msvs_version not set from command line or npm config vcinstalldir not set”问题,我可以从以下几个方面进行解答: 1. 确认错误信息的来源和上下文 这个错误通常出现在使用npm安装需要编译原生代码的npm包时,尤其是在Windows系统上。错误信息表明系统无法找到正确的Visual Studio版本或者Visual Studio的...
安装完毕后,在cmd中输入 python --version 就能看到相关版本了。 2. npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use 执行npm操作的时候出现错误: 代码语言:javascript 代码运行次数:0 npmERR!gypERR!findVSnpmERR!gypERR!findVSmsvs_version notsetfrom command line ...
gyp info find Python using Python version 3.10.0 found at "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\python.exe" npm ERR! gyp ERR! find VS npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config npm ERR! gyp ERR! find VS VCINSTALLDIR not...
C:\Users\admin>npm config set msvs_version 2017 C:\Users\admin>npm install npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\admin\package.json' npm notice created a lockfile as package-lock.json. You should commit this file. ...
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 VS2022 (17.5.33530.505) found at: gyp ERR! find VS "D:\Program Files\Microsoft Visual Studio\2022\Community" gyp ERR! find ...
我安装的VS是目前的最新版本2022,执行以下命令: npm config set msvs_version 2022 1. 这次我信誓旦旦的重新npm install和yarn install --ignore-engines,结果再次打脸,现实淹没理想就是这么快,依然报一样的错误,心态有点蹦了!!! 沉思良久 我想了很久,该安装的环境我都安装了,也没有亏待它,到底是哪出错了!