npm ERR! code EAI_AGAIN
npm ERR! errno EAI_AGAIN
npm ERR! request to https://registry.npm.taobao.org/webpack failed, reason: getaddrinfo EAI_AGAIN registry.npm.taobao.org
npm ERR! A complete log of this run can be found in:
可能原因 :npm镜像问题 以及网络代理服务的问题。
1.设置npm镜像
设置为永久:
npm config set registry https://registry.npm.taobao.org
一次使用:
npm install webpack --registry=https://registry.npm.taobao.org
设置代理服务器的服务名和端口号(自己的)
npm config set proxy http://server:port
npm config set https-proxy http://server:port
最后再重新install
其他可行方案 :换个WiFi连接 重新运行。