• 首页
  • 关于

鸽子窝:Pigeon's Blog

笨蛋鸽子的小窝
技术

Yarn install Electron遇到couldn't be built successfully——2026解决方案

2026-02-12 浏览量 0 暂无评论

研究项目时遇到Yarn install electron fail。
报错couldn't be built successfully

log提示:

# This file contains the result of Yarn building a package (electron@npm:37.10.3)
# Script name: postinstall

RequestError: unable to verify the first certificate; if the root CA is installed locally, try running Node.js with --use-system-ca

没有弄明白具体的问题,猜测是TLS策略?总之按照Claude的建议,设置了两个环境变量解决。

$env:ELECTRON_MIRROR = "https://npmmirror.com/mirrors/electron/"
$env:npm_config_electron_mirror = "https://npmmirror.com/mirrors/electron/"
技术
发“博”词:致我们的与我的时代
关于SteamCommunity302工具使用时踩过的坑

评论/ 取消评论

  • 文章目录
  • 站点概览
    author

    7 日志
    5 分类
    Creative Commons

    浏览量 : 0

    © 2026 鸽子窝:Pigeon's Blog. Power By Typecho . Theme by Shiyi

    This is just a placeholder img.