错误:
Downloading electron-v22.2.0-win32-x64.zip: [-------------------------------
在终端命令行输入
npm config ls -l
查看
.npmrc配置路径(如果没有,则执行npm config set registry https://registry.npm.taobao.org就会生成该文件)
修改.npmrc配置文件内容,改成
registry=https://registry.npm.taobao.org
sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
phantomjs_cdnurl=http://npm.taobao.org/mirrors/phantomjs
electron_mirror=https://npm.taobao.org/mirrors/electron/