npm yarn:Request Error: connect ETIMEDOUT 20.205.243.166:443和read ECONNRESET错误解决办法

首先需要安装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源地址后,显示安装成功

猜你喜欢

转载自blog.csdn.net/leonnew/article/details/123827711