最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
修复yarn安装依赖包报错errorAnunexpectederroroccurred:https://registry.npm.taobao.orgnpm/element-ui:get问题
时间:2026-06-08 08:27:54 编辑:袖梨 来源:一聚教程网
yarn安装依赖包报错
error An unexpected error occurred: “https://registry.npm.taobao.orgnpm/element-ui: getaddrinfo ENOTFOUND registry.npm.taobao.orgnpm registry.npm.taobao.orgnpm:443”.

这是因为网络不好导致的下载依赖包请求超时报错,更改下载地址即可。
解决
步骤1
请求地址设置成淘宝源

npm config set registry https://registry.npm.taobao.org npm config set disturl https://npm.taobao.org/dist
步骤2
对node-sass镜像源进行设置

yarn config set sass-binary-site http://npm.taobao.org/mirrors/node-sass
步骤3
重新下载

总结
以上为个人经验,希望能给大家一个参考,也希望大家多多支持本站。
相关文章
- 《明日方舟》精一50级升80级需要多少经验-50级升到80级经验与龙门币需求分析 08-01
- 王者荣耀世界王昭君有什么技能 王昭君技能效果介绍 08-01
- Namo-Turn-Detector-v1-Korean 项目介绍:GitCode 开源模型信息整理 08-01
- 个人所得税退税申请时间是何时 08-01
- 明日方舟早露常伴我身皮肤详情 08-01
- 蛋仔派对绯梦佩姬获取方法一览 08-01