npm install报错:request to https://registry.npm.taobao.org/vue-loader failed, reason: getaddrinfo ENOTFOUND registry.npm.taobao.org
解决:https://jingyan.baidu.com/article/acf728fd99b16ff8e510a301.html
查看镜像源:npm get registry
https://registry.npmjs.org/
国内npm镜像源设置
淘宝npm镜像
搜索地址:npmmirror 镜像站
registry地址:http://registry.npm.taobao.org/
cnpmjs镜像
搜索地址:npmmirror 镜像站
registry地址:http://r.cnpmjs.org/
使用方法:
临时使用npm --registry https://registry.npm.taobao.org install express
持久使用npm config set registry https://registry.npm.taobao.org
配置完成后可通过下面方式来验证是否成功
npm config get registry