Electron | throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')

https://github.com/electron-vite

问题原因

在install的时候node_modules/electron/中的文件丢失造成程序无法执行

解决方案(之一)

参考https://github.com/pangxieju/electron-fix

// 1.
npm instal
// 2.
npm install -g electron-fix
// 3.
electron-fix start
//4.
npm run dev

参考文章
Electron failed to install correctly, please delete node_modules/electron and try installing again

解决安装electron卡在node install.js 不动问题

posted @   槑孒  阅读(223)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
历史上的今天:
2022-06-30 npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.如何解决
2022-06-30 yarn : 无法加载文件 C:\Users\L\AppData\Roaming\npm\yarn.ps1,因为在此系统上禁止运行脚本
点击右上角即可分享
微信分享提示