然后在CMD中设置 npm config set msvs_version 2017 如果后面的版本号错误,就根据提示修改为对应的版本号,例如下面这张图,就需要修改为2019 3、提示:Python环境安装不上 注:那就自己下载一个Python安装,网上有很多安装教程,推荐使用下载.mis一键安装 本文由mdnice多平台发布...
然后在CMD中设置 npm config set msvs_version 2017 如果后面的版本号错误,就根据提示修改为对应的版本号,例如下面这张图,就需要修改为2019 3、提示:Python环境安装不上 注:那就自己下载一个Python安装,网上有很多安装教程,推荐使用下载.mis一键安装 本文由mdnice多平台发布...
2、如果没有手动安装过Python则在上面一步自动安装Python后可能需要手动配置一下环境变量,Windows PowerShell或CMD中执行npm config set python python2.7 3、重新设置该项目的msvs版本,同样Windows PowerShell或CMD中执行npm config set msvs_version 2017,或者全局的话加个-g。 4、再在项目中运行npm install,可能...
你可以通过 npm 配置命令来设置 msvs_version。例如,如果你的系统中安装了 Visual Studio 2017,你可以通过以下命令来设置: bash npm config set msvs_version 2017 或者,如果你使用的是 Windows PowerShell,并且想要设置环境变量(这通常不是 npm 的直接设置,但可能由某些工具或脚本使用),你可以使用: powershell...
npm config set python python2.7npm config set msvs_version 2017 第一句指令, 指定了使用python2.7作为编译环境(在上一步中已经安装), electron并不支持python3.x. 在指定了环境变量之后, 用户不需要将本机中其他python卸载. 第二句指令, 指定了使用项目使用的msvs版本. ...
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'...
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 VS2017 (15.9.28307.1778) found at: gyp ERR! find VS "D:\Program Files (x86)\Microsoft Visual Studio\2017\Community...
1.cmake编辑opencv的源代码路径(带有makelist的目录),生成opencv相关lib文件.configure两次后,点击生成(cmake中选择安装的以依赖库,如果缺少相应的依赖库,就算成功生成了的OpenCV功能也会有问题的,建议的NuGet下载)方法
gyp info find Python using Python version 2.7.15 found at "C:\Users\hypo\.windows-build-tools\python27\python.exe" npm ERR! gyp ERR! find VS npm ERR! gyp ERR! find VS msvs_version was set from command line or npm config npm ERR! gyp ERR! find VS - looking for Visual Studio ver...
$npm config set msvs_version 2017 $npm rebuild 这些都操作了一遍,还是报错,无法安装成功。 最后通过cnpm解决: 淘宝NPM 镜像 https://developer.aliyun.com/mirror/NPM $ npm install -g cnpm --registry=https://registry.npm.taobao.org (cnpm(gzip 压缩支持) 命令行工具代替默认的npm) ...