vue3+electron 搭建项目遇到的问题
参考文档: https://blog.csdn.net/qq_37460847/article/details/126918641
1、使用18.12.1 node版本
使用nvm管理node 版本
参考:https://www.cnblogs.com/aishangliming/p/17023543.html
2、npm 安装依赖报错问题
全局安装cnpm
npm install -g cnpm -registry=https://registry.npm.taobao.org
3、打包安装github依赖包问题
C:\Windows\System32\drivers\etc 文件夹下的hosts文件里边写
电脑ip地址 github.com 例如:192:168:0:1 github.com