安装CORS(cors)报错解决方案

安装CORS(cors)报错:request to https://registry.npm.taobao.org/cors failed, reason: getaddrinfo EAI_AGAIN registry.npm.taobao.org

request to https://registry.npm.taobao.org/cors failed, reason: getaddrinfo EAI_AGAIN registry.npm.taobao.org_其他

解决方案:

先在全局打开终端面板(window+R--->cmd-->分别输入命令)

1:nrm use npm                切换镜像源

2 : npm install(或i) cors       安装cors

3:  npm ls                              查看镜像源,从淘宝切换到了npm

request to https://registry.npm.taobao.org/cors failed, reason: getaddrinfo EAI_AGAIN registry.npm.taobao.org_报错解决_02