Repository navigation
克隆模板npx degit alex8088/electron-vite-boilerplate electron-app 启动项目报错。 #935
Unanswered
Hustoncaine1920
asked this question in
Q&A
Replies: 1 comment
|
electron-vite 启动时会读取 先确认一下: Test-Path node_modules/electron/path.txt
Test-Path node_modules/electron/dist/electron.exe如果是 $env:ELECTRON_MIRROR="https://npmmirror.com/mirrors/electron/"
node node_modules/electron/install.js
npm run dev或者删除 Remove-Item -Recurse -Force node_modules
npm install
npm run dev如果你本机已经有可用的 Electron,也可以直接指定可执行文件路径,electron-vite 会优先使用它: $env:ELECTRON_EXEC_PATH="C:\path\to\electron.exe"
npm run dev |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
克隆模板npx degit alex8088/electron-vite-boilerplate electron-app 启动项目报错。



All reactions