# electron-demo **Repository Path**: handsomeno2/electron-demo ## Basic Information - **Project Name**: electron-demo - **Description**: aaaaaaaaaaaaaaa - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-09-18 - **Last Updated**: 2024-09-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README npm create vite@latest npm install --save-dev electron npm install concurrently --save-dev \\安装 concurrently 来同时运行多个命令 要设置国内npm镜像 下载不下来依赖(electron),系统环境变量增加一个 ELECTRON_MIRROR="https://npmmirror.com/mirrors/electron/" 增加环境变量后,重启电脑,还不行的话关闭windows防火墙再拉 node:20.13.1 npm:10.5.2 package.json中增加这些配置 { "name": "my-electron-app", "version": "1.0.0", "description": "Hello World!", "main": "main.js", "author": "Jane Doe", "license": "MIT" } "electron": "electron .", "app": "concurrently \"npm run dev\" \"npm run electron\" " 根目录下增加main.js 启动 npm run app 打开vue-devtools,要另外开一个控制台 ./node_modules/.bin/vue-devtools