request to https://registry.npm.taobao.org/vue-loader failed!
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镜像
搜索地址:http://npm.taobao.org/
registry地址:http://registry.npm.taobao.org/
cnpmjs镜像
搜索地址:http://cnpmjs.org/
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