淘宝镜像请求失败解决方法: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镜像

搜索地址: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

相关推荐
缺点内向1 天前
如何在 C# 中将 Excel 工作表拆分为多个窗格
开发语言·c#·.net·excel
少废话h1 天前
解决Flink中ApacheCommonsCLI版本冲突
开发语言·python·pycharm
天命码喽c1 天前
GraphRAG-2.7.0整合Milvus-2.5.1
开发语言·python·milvus·graphrag
后端小张1 天前
【JAVA进阶】Spring Boot 核心知识点之自动配置:原理与实战
java·开发语言·spring boot·后端·spring·spring cloud·自动配置
土豆12501 天前
React-Draggable 快速上手指南
react.js
veneno1 天前
大量异步并发请求控制并发解决方案
前端
Mr_Xuhhh1 天前
YAML相关
开发语言·python
i***t9191 天前
Spring Boot项目接收前端参数的11种方式
前端·spring boot·后端
咖啡の猫1 天前
Python中的变量与数据类型
开发语言·python
前端达人1 天前
你的App消息推送为什么石沉大海?看Service Worker源码我终于懂了
java·开发语言