问题解决
1、前端开发方面的问题
关于electron使用第三方nodejs模块编译打包的注意事项
关于使用electron开发串口项目中编译的一些注意事项
推荐一款更好用的字体抽取工具font-spider
failed Error: not found: python2.7的问题解决
thinkphp5.0.24兼容php7.4
nginx配置api前缀url转发,解决跨越访问
uni-app使用阿里iconfont多色图标
公众里如何发布竖版的视频,使用SVG方式
使用requireJS引入element-ui
2、后端开发方面的问题
记一次在centos7下安装Django博客的安装踩坑
oracle Cause: java.sql.SQLException: 调用中的无效参数
四种方式可以获取到nacos里的配置信息
gradle3.1升级到gracle7.6版本需要更新的地方
Idea解决Service启动服务不显示端口号的问题
docker中部署的flowable流程图乱码
jdk11版本的jenkins如何打包jdk8项目 ?
windows下面批量更新某个文件夹下面所有的git项目目录
在centos7.9环境上安装 nodejs20版本
3、部署运维方面的问题
virtualBox虚拟机拓展磁盘空间
win10家庭版本安装远程桌面
ssh连接虚拟机CentOS缓慢解决方法
jenkins构建的时候报git: Permission denied错误
安装sqlserver2017的时候遇到的两个坑
CentOS 的 YUM安装时卡死解决方案
docker容器在还原nexus3的数据的时候,注意
4、效率提升方面
win10系统右键没有新建文本文档的选项
微信双开的脚本.bat
Github Copilot如何使用,使用的快捷方式
copilot GitHub Copilot could not connect to server. Extension activation failed: “getaddrinfo ENOTFO
使用ffmpeg 将mp4里的音频摄取成mp3
5、问题的反思
记一次解决投票高并发引发的性能问题
uniapp 在远程调试的时候,报错Invalid Host header
解决绘世启动器的报错:Could not initialize Tensile library
Photoshop2024无法拖动图片导入的解决办法
kgm音乐文件解密操作
玄派星曜+开源宇宙eg01-c+rtx 4060ti 的一些配置说明
centos9上面安装wireguard后,无法启动服务Failed to set DNS configuration: Could not activate remote peer.
本文档使用 MrDoc 发布
-
+
首页
关于electron使用第三方nodejs模块编译打包的注意事项
把electron的版本升级成5.0.8后,需要对 你系统 里包含的第三方模块进行重行编译。 切换到对应的目录下(这个目录下必须包含binding.gyp),使用node-gyp,指定target=5.0.8 ,编译成功。 使用npm run dev 没有任何问题。 但是npm run build 后,确报以下错误:  Error output: prebuild-install WARN install No prebuilt binaries found (target=5.0.8 runtime=electron arch=x64 libc= platform=win32) gyp ERR! find VS gyp ERR! find VS msvs_version was set from command line or npm config gyp ERR! find VS - looking for Visual Studio version 2015 gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt gyp ERR! find VS checking VS2019 (16.6.30309.148) found at: gyp ERR! find VS "d:\Program Files (x86)\Microsoft Visual Studio\2019\Professional" gyp ERR! find VS - found "Visual Studio C++ core features" gyp ERR! find VS - found VC++ toolset: v142 gyp ERR! find VS - found Windows SDK: 10.0.18362.0 gyp ERR! find VS - msvs_version does not match this version gyp ERR! find VS checking VS2017 (15.9.28307.1000) found at: gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools" gyp ERR! find VS - found "Visual Studio C++ core features" gyp ERR! find VS - found VC++ toolset: v141 gyp ERR! find VS - found Windows SDK: 10.0.17763.0 gyp ERR! find VS - msvs_version does not match this version 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 looking for Visual Studio 2013 gyp ERR! find VS - not found gyp ERR! find VS gyp ERR! find VS valid versions for msvs_version: gyp ERR! find VS - "2019" gyp ERR! find VS - "d:\Program Files (x86)\Microsoft Visual Studio\2019\Professional" gyp ERR! find VS - "2017" gyp ERR! find VS - "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools" 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\seqier\AppData\Roaming\npm\node_modules\npm\node_modules\node-gy p\lib\find-visualstudio.js:121:47) 这个错误里有下关键的网址是:https://github.com/nodejs/node-gyp#on-windows, On Windows Install the current version of Python from the Microsoft Store package. Option 1 Install all the required tools and configurations using Microsoft's windows-build-tools using npm install --global --production windows-build-tools from an elevated PowerShell or CMD.exe (run as Administrator). Option 2 Install tools and configuration manually: Install Visual C++ Build Environment: Visual Studio Build Tools (using "Visual C++ build tools" workload) or Visual 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 visit Microsoft's Node.js Guidelines for Windows for additional tips. To target native ARM64 Node.js on Windows 10 on ARM, add the components "Visual C++ compilers and libraries for ARM64" and "Visual C++ ATL for ARM64". 我本机装有visual studio的开发环境,进行以下的设置。把下面2015 2017两个勾上了,把2019的去掉了。。  完成后,在cmd窗口 执行:npm config set msvs_version 2017 再次npm run build ,终于 打包成功了。。
superadmin
2023年2月16日 10:12
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
Markdown文件
分享
链接
类型
密码
更新密码