搭建electron环境
- 安装electron
cnpm i -g electron
2.查看版本
npx electron -v
3.检查安装是否成功,如果出现弹窗 说明安装成功
./node_modules/.bin/electron
配置electron镜像地址
npm config set registry http://registry.npm.taobao.org/
npm config set electron_mirror="https://npm.taobao.org/mirrors/electron/"
npm config set electron_builder_binaries_mirror="http://npm.taobao.org/mirrors/electron-builder-binaries/"
查看:
如果有proxy=null;https-proxy=null等 需要删除