pnpm安装electron报错404解决方案
方案一:自定义镜像地址
pnpm config set registry https://registry.npmmirror.com/
pnpm config set electron_mirror=https://cdn.npmmirror.com/binaries/electron/
pnpm config set electron_custom_dir=26.3.0
方案二:添加 .npmrc 配置
或者直接在 .npmrc 里面加上两行,注意版本
electron_mirror=https://cdn.npmmirror.com/binaries/electron/
electron_custom_dir=26.3.0
参考:
https://github.com/electron/electron/issues/22792