当前位置:首页 » 《随便一记》 » 正文

error An unexpected error occurred: “https://registry.npmmirror.com/moment: tunneling socket could n

27 人参与  2024年02月14日 16:21  分类 : 《随便一记》  评论

点击全文阅读


yarn install 的时候报了错误

error An unexpected error occurred: "https://registry.npmmirror.com/moment: tunneling socket could not be established, cause=socket hang up".

在这里插入图片描述

解决方法

查看镜像npm config get registry  //查看yarn config get registry// https://registry.npm.taobao.org/切换淘宝镜像npm config set registry https://registry.npm.taobao.orgyarn config set registry https://registry.npm.taobao.org

我换了原来的镜像

npm config set registry http://registry.npmjs.orgyarn config set registry https://registry.yarnpkg.com

yarn 不行就换npm,确保都换了,然后这个报错就可以解决了

如果还不行的,检查你的代理地址是否正确,是否防火墙影响


点击全文阅读


本文链接:http://zhangshiyu.com/post/68492.html

<< 上一篇 下一篇 >>

  • 评论(0)
  • 赞助本站

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

关于我们 | 我要投稿 | 免责申明

Copyright © 2020-2022 ZhangShiYu.com Rights Reserved.豫ICP备2022013469号-1