安装时指定源版本及源 ,亲测有效 npm install -g electron@v15.0.0 --electron_mirror=https://npm.taobao.org/mirrors/electron/ 查看版本