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

推荐订阅源

Hugging Face - Blog
Hugging Face - Blog
Recent Announcements
Recent Announcements
V
Visual Studio Blog
博客园 - 叶小钗
H
Help Net Security
aimingoo的专栏
aimingoo的专栏
宝玉的分享
宝玉的分享
U
Unit 42
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
F
Fortinet All Blogs
V
V2EX
Stack Overflow Blog
Stack Overflow Blog
WordPress大学
WordPress大学
D
DataBreaches.Net
J
Java Code Geeks
H
Hackread – Cybersecurity News, Data Breaches, AI and More
A
About on SuperTechFans
酷 壳 – CoolShell
酷 壳 – CoolShell
量子位
C
Check Point Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
Microsoft Azure Blog
Microsoft Azure Blog
M
MIT News - Artificial intelligence

孙琪峥

CQG QTrader Desktop Crack only Lifetime [x86x64] Stable GitHub Office LTSC Super-Lite [QxR] - 孙琪峥 Microsoft Office 2019 Enterprise E5 ARM Activated [KMS-VL-ALL] KMS Activation Code Qwen3.5-4B-GGUF on Copilot+ PC Full Speed NPU Mode 007: First Light Deluxe Edition Tiny Girl Repack Gears of War: E-Day Pre-Installed Windows MediaFire Code Vein II Deluxe Edition Portable Game +Patch gDrive UltraISO Portable + License Key [no Virus] [Lifetime] .zip AutoCAD Crack tool [Final] .zip Marvel’s Spider-Man Remastered Crack GOG Release Updated PC Microsoft Office 2016 Internet Archive Minimal Setup KMS Activation Code M365 Auto Setup Reddit [KMS-VL-ALL] Quick Run tiny-random-LlamaForCausalLM No Admin Rights Office 2019 x64 Digital License One-click Setup French Metro Awakening Deluxe Edition (& no VR mod) Cracked Update Portable Game for Windows ots29xgdb1w6jq5n - 孙琪峥 端午安康!博客进行了主题升级 - 孙琪峥 群晖NAS MySQL无法外部连接的解决办法 - 孙琪峥 - 比花言巧语更难的是学会闭嘴 群晖NAS MySQL无法外部连接的解决办法 - 孙琪峥 - 比花言巧语更难的是学会闭嘴 “npm warn Unknown project config "electron_mirror". This will stop working in the next major version of npm”的解决方案 - 孙琪峥 鱼贝贝文件信息批量提取神器v1.3.0.250118 免费|绿色免安装|全功能离线版 - 孙琪峥 - 比花言巧语更难的是学会闭嘴 鱼贝贝文件信息批量提取神器v1.3.0.250118 免费|绿色免安装|全功能离线版 - 孙琪峥 - 比花言巧语更难的是学会闭嘴 phpstudy启动报错nginx: [emerg] invalid number of arguments in "include" directive in 的解决方法 - 孙琪峥 phpstudy启动报错nginx: [emerg] invalid number of arguments in "include" directive in 的解决方法 - 孙琪峥 微信小程序《隐私政策》范文参考 - 孙琪峥 - 比花言巧语更难的是学会闭嘴 微信小程序《隐私政策》范文参考 - 孙琪峥 - 比花言巧语更难的是学会闭嘴 electron开发中使用nodemon进行热更新的方法 - 孙琪峥 - 比花言巧语更难的是学会闭嘴 electron开发中使用nodemon进行热更新的方法 - 孙琪峥 - 比花言巧语更难的是学会闭嘴 electron开发,文件无法拖放到渲染窗口的一种奇怪情况,附原因和解决方案 - 孙琪峥 - 比花言巧语更难的是学会闭嘴 electron开发,文件无法拖放到渲染窗口的一种奇怪情况,附原因和解决方案 - 孙琪峥 - 比花言巧语更难的是学会闭嘴
“npm warn Unknown project config "electron_mirror". This ...
admin · 2025-09-11 · via 孙琪峥

最近老孙的一个electron项目,通过命令行启动时,有两行提示:

npm warn Unknown project config "electron_mirror". This will stop working in the next major version of npm.
npm warn Unknown project config "electron_builder_binaries_mirror". This will stop working in the next major version of npm.

提示大意是当前的electron_mirror和electron_builder_binaries_mirror配置国内镜像源的方式,在后续的major版本不会再被支持。

排查一下,当前项目默认是通过项目根目录下.npmrc文件中配置的。

解决方法如下:

第一步

将ELECTRON_MIRROR和ELECTRON_BUILDER_BINARIES_MIRROR设置为系统环境变量。可以在系统属性中设置,也可以直接通过cmd命令设置,cmd命令如下:

setx ELECTRON_MIRROR "https://npmmirror.com/mirrors/electron/"
setx ELECTRON_BUILDER_BINARIES_MIRROR "https://npmmirror.com/mirrors/electron-builder-binaries/"

大家注意校对一下名称和对应的地址和.npmrc文件中是否一致。

第二步

注释或删除掉.npmrc文件中对应的配置。

第三步

重启电脑