根据目标操作系统,准备相应格式的图标文件。Windows 平台一般使用` ico`格式,macOS 平台使用` icns`格式。图标文件可以通过专业的图标设计工具创建,也可利用在线图标生成器生成。
在 Electron 的主进程中禁用同源策略: 1、在 Electron 的主进程文件中添加 app commandLine appendSwitch( "disable-site-isolation-trials "); 来禁用站点隔离试验。 2、在创建 BrowserWindow 时,设置 webPreferences 的 webSecurity: false 来禁用同源策略。
yarn : 无法加载文件 G: nvm nodejs yarn ps1,因为在此系统上禁止运行脚本
用淘宝镜像安装依赖时,提示:request to https: registry npm taobao org vuedraggable failed, reason: certificate has expired
这个错误是由于在 TypeScript 配置文件(tsconfig json)中使用了 --resolveJsonModule 选项,但是没有正确配置 moduleResolution 选项。
vue3+vite+electron 渲染进程使用ipcRenderer报错,使用require报错
npm install报错 npm ERR! Unexpected token 解决办法
运行nvm命令:nvm list available报错:PS C: Users Administrator> nvm list available Could not retrieve https: npm taobao org mirrors node index json