镜像 - Electron
...小于 1 分钟
在国内环境安装Electron
经常会卡在electron: Running postinstall script
,这时候需要设置npm
或pnpm
中的electron_mirror
环境变量为国内镜像以加速下载安装
# 设置阿里镜像
npm config set registry=https://registry.npmmirror.com
npm config set disturl=https://registry.npmmirror.com/-/binary/node
# 设置electron仓库(重要)
npm config set electron_mirror=https://registry.npmmirror.com/-/binary/electron/
Powered by Waline v3.3.2