首先需要安装Python 2.7.15并配置环境变量,这里不在多说,
我这里安装Electron出现connect ETIMEDOUT 20.205.243.166:443的错误,
先将npm源改为npm config set registry https://registry.npmmirror.com
yarn config set registry https://registry.npmmirror.com --global
yarn config set disturl https://npmmirror.com/dist --global
修改yarn源地址后,显示安装成功