解压 node-v20.15.1-linux-x64.tar.gz 到 /home/cnki/vm
;; 环境变量~/.bashrc
export NODE_HOME=/home/cnki/vm/node-v20.15.1-linux-x64
export PATH=$NODE_HOME/bin:$PATH
;; npm
npm config set registry http://mirrors.cloud.tencent.com/npm/
electron (x64, arm) 修改 .npmrc
;; 华为
electron_mirror=https://mirrors.huaweicloud.com/electron/
electron_custom_dir={{ version }}
;; electron 阿里
electron_mirror=https://npmmirror.com/mirrors/electron/
electron_custom_dir={{ version }}
electron (龙芯)
;; 修改 .npmrc
electron_mirror=http://ftp.loongnix.cn/electron/LoongArch/
;; 环境变量,第三方release, 使用远程SHA256SUMS.txt代替内部checksums.json
export electron_use_remote_checksums=1
;; 注意修改版本号, 202408
electron-v26.4.3-linux-loong64.zip
electron-v31.3.1-linux-x64.zip
electron-v31.3.1-linux-arm64.zip
排查问题
npm install --verbose
跳过下载
ELECTRON_SKIP_BINARY_DOWNLOAD=1 npm install --verbose