惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
量子位
大猫的无限游戏
大猫的无限游戏
Hugging Face - Blog
Hugging Face - Blog
S
SegmentFault 最新的问题
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
Google DeepMind News
Google DeepMind News
小众软件
小众软件
WordPress大学
WordPress大学
宝玉的分享
宝玉的分享
MongoDB | Blog
MongoDB | Blog
B
Blog RSS Feed
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog
博客园 - 聂微东
The GitHub Blog
The GitHub Blog
Recent Announcements
Recent Announcements
Y
Y Combinator Blog
Microsoft Security Blog
Microsoft Security Blog
雷峰网
雷峰网
Jina AI
Jina AI
酷 壳 – CoolShell
酷 壳 – CoolShell

博客园 - egreen

在Visual Studio里用原版Copilot交互,烧DeepSeek等国模的Token,让微软和深度求索都为你打工 macOS 上通过二进制安装 Qdrant 并配置为 launchd 服务 CLI-Anything + Gear 最佳实践与踩坑修复沉淀 cli-proxy-api 工业AI报警插件 ZL.Simulator 工业级多仪器仿真与合成数据平台 SyncBus:让多台设备“齐舞”,告别协同烦恼 ZL.ParamEditor:把WinForms配置从‘苦力活’变成‘享受’! 彻底告别 WinForms SOP 开发的“老大难”! 告别“屎山”代码!Gear.NET:专为 .NET 工业自动化打造的微编排框架 【MacOS】彻底卸载Navicat dotnet项目编译运行 pnpm 安装后无法使用 macOS 彻底卸载和重装 Node.js 指南 Serena 最佳实践方案 Create Custom Endpoint in Directus directus 的endpoint功能 CAN通讯上位机开发快问快答与最佳实践 在老项目中Claude code 中使用 ccpm功能 个人注册企业微信及机器人
electron 安装失败
egreen · 2025-10-02 · via 博客园 - egreen

清理缓存重装

# 删除依赖和锁文件
rm -rf node_modules pnpm-lock.yaml

# 清理pnpm缓存
pnpm store prune

# 重新安装
pnpm install

#一行命令
rm -rf node_modules pnpm-lock.yaml && npm cache clean --force

使用Electron镜像

# 设置镜像并安装
ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ pnpm install
ELECTRON_MIRROR=http://npm.taobao.org/mirrors/electron/ pnpm install

如涉及到权限,需要上参数,例如 

pnpm install --unsafe-perm


愿意一起学习的小伙伴,可以加qq: 285861181 ,共同交流。


本文来自博客园,作者:egreen,转载请注明原文链接:https://www.cnblogs.com/egreen/p/19123841


posted @ 2025-10-02 18:09  egreen  阅读(83)  评论(0)    收藏  举报