vue-devtools安装失败Electron failed to install correctly解决

  • 启动报错

C:\Users\Administrator>vue-devtools
C:\Users\Administrator\AppData\Roaming\npm\node_modules@vue\devtools\node_modules\electron\index.js:14
throw new Error(‘Electron failed to install correctly, please delete node_modules/electron and try installing again’)
^
Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
at getElectronPath (C:\Users\Administrator\AppData\Roaming\npm\node_modules\[4m@vue[24m\devtools\node_modules\[4melectron[24m\index.js:14:11)
at Object. (C:\Users\Administrator\AppData\Roaming\npm\node_modules\[4m@vue[24m\devtools\node_modules\[4melectron[24m\index.js:18:18)
[90m at Module._compile (internal/modules/cjs/loader.js:1063:30)[39m
[90m at Object.Module._extensions…js (internal/modules/cjs/loader.js:1092:10)[39m
[90m at Module.load (internal/modules/cjs/loader.js:928:32)[39m
[90m at Function.Module._load (internal/modules/cjs/loader.js:769:14)[39m
[90m at Module.require (internal/modules/cjs/loader.js:952:19)[39m
[90m at require (internal/modules/cjs/helpers.js:88:18)[39m
at Object. (C:\Users\Administrator\AppData\Roaming\npm\node_modules\[4m@vue[24m\devtools\bin.js:2:18)
[90m at Module._compile (internal/modules/cjs/loader.js:1063:30)[39m

  • 原因
    electron安装失败
  • 解决
  1. 删除node_modules/electron
  2. 设置环境变量ELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron/
  3. 重新安装electron

npm install -g electron

在这里插入图片描述

posted on   路过君  阅读(730)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全网最简单!3分钟用满血DeepSeek R1开发一款AI智能客服,零代码轻松接入微信、公众号、小程
· .NET 10 首个预览版发布,跨平台开发与性能全面提升
· 《HelloGitHub》第 107 期
· 全程使用 AI 从 0 到 1 写了个小工具
· 从文本到图像:SSE 如何助力 AI 内容实时呈现?(Typescript篇)
历史上的今天:
2020-04-11 spring 启动时自动运行
2020-04-11 spring cloud oauth2授权服务 默认tokenService配置源码
2020-04-11 spring cloud 搭建oauth2授权服务 使用redis存储令牌
2020-04-11 spring cloud oauth2授权服务 clientDetails配置源码
2020-04-11 spring 验证框架
2020-04-11 IDEA 插件整理
2020-04-11 spring security笔记 默认登陆页面源码

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示