项目场景:

最近大家在使用yarn的时候出现下面这种提示的频率越来越高了:
例如:info There appears to be trouble with your network connection. Retrying…


问题描述:

话不多说,有图有真相,没代码靠边站:


原因分析:

info There appears to be trouble with your network connection. Retrying… 信息:网络连接似乎出了点问题,请重试… 但你仔细检查下来,自己的网络似乎并没有什么问题,网络一切正常,那么心机之蛙,一直摸你肚子,问题就很可能出现在了代理连接上。


解决方案:

更换安装依赖的镜像,使用淘宝镜像安装,代码如下:

1、安装好后更换淘宝镜像

yarn config set registry https://registry.npm.taobao.org

2、移除原代理

yarn config delete proxy
npm config rm proxy
npm config rm https-proxy

3、安装cnpm镜像并使用代理registry

安装cnpm镜像
npm install -g cnpm --registry=https://registry.npm.taobao.org
使用代理registry
npm config set registry https://registry.npm.taobao.org

如此即可解决,我们网络报错的问题!有疑问,欢迎补充讨论!

info There appears to be trouble with your network connection. Retrying相关推荐

  1. yarn 错误:There appears to be trouble with your network connection. Retrying…

    问题 解决方法 更换源 操作 查看yarn/npm源 #查看代理 yarn config list npm config list npm设置代理 npm config set proxy http: ...

  2. 【yarn报错】info There appears to be trouble with your network connection. Retrying...

    挂的代理的问题,困扰了一个小时,各种检查镜像配置,查资料 1.yarn config list,发现 'https-proxy': 'http://127.0.0.1:1080', 2.yarn co ...

  3. yarn 安装 报错:“info There appears to be trouble with your network connectio“ 解决方案

    1.使用npm安装yarn npm install -g yarn --registry=https://registry.npm.taobao.org 2.配置源 yarn config set r ...

  4. git服务器安装位置,Linux服务器安装gitlabe-runner,并部署包到指定目录,还有踩的一些坑~~...

    [TOC] 前言:上篇文章讲解了如何安装一个本地runner,然后用本地runner发布本地包到Linux,但这会有一个问题,在本地runner用scp向Linux发送文件,会造成服务器上的文件越来越 ...

  5. cordova+vue项目整合

    1.cordova项目新建 : learn-cordova 安装: $npm install -g cordova 版本: $cordova -v 创建: $cordova create learn- ...

  6. error An unexpected error occurred “httpsregistry.npmjs.orgd3-geo-proje

    error An unexpected error occurred: "https://registry.npmjs.org/d3-geo-proje yarn install 报错 大概 ...

  7. error An unexpected error occurred: “https://registry.npmjs.org/axios

    yarn add 报错 大概意思是:(原因是代理的问题) There appears to be trouble with your network connection. Retrying-(有道翻 ...

  8. error An unexpected error occurred: “https://registry.npmjs.org/d3-geo-proje

    error An unexpected error occurred: "https://registry.npmjs.org/d3-geo-proje yarn install 报错 大概 ...

  9. Error: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND 11000

    创建一个新的React应用时发生错误 前些天在公司的电脑上重新搭建各种环境,突然出了这个问题. 使用命令:npx create-react-app demo 环境:node v16.3.0; npm ...

  10. 【npm】tunneling socket could not be established

    vscode创建react项目中npm淘宝源突然tunneling socket could not be established, 使用命令npm i -D create-react-app出现 i ...

最新文章

  1. VC6中工具条的新特色
  2. Tools下的mdscongiguer 文件中 43行 oracle 配置 发现需要连接库 -lclntsh libclntsh.so 库是个什么东西呢?...
  3. Android构建流程——篇二
  4. UVA 10254 The Priest Mathematician
  5. Android 微信登录
  6. bzoj1967 [AHOI2005]穿越磁场 离散最短路
  7. Java 算法 麦森数
  8. 成都睿铂M6Pros近景摄影测量:西安古城墙数字化建设应用介绍
  9. jfinal 普通java工程_JFinal getModel方法如何在java项目中使用
  10. pve网卡直通虚拟机pve失联打不开解决方案,不用重新安装pve
  11. 朴素贝叶斯中拉普拉斯平滑算法
  12. 新品发布 | 麒麟产业服务:麒麟云上产业园,打造数字新基建
  13. TRANSFORMER TRANSDUCER: A STREAMABLE SPEECH RECOGNITION MODELWITH TRANSFORMER ENCODERS AND RNN-T
  14. Cyclical Quest CF235C
  15. 《HelloGitHub》第 45 期
  16. 快手光合计划完整版攻略
  17. CentOS.7卸载与安装Nvidia Driver
  18. ICML 2020 | GCNII:简单和深度图卷积网络
  19. 安全大数据的7个V——大数据基础问题与信息安全的交叉探究
  20. iOS 底层解析weak的实现原理

热门文章

  1. OpenHarmony hdc_std无反应的解决办法
  2. 给临时停车号码牌插上翅膀:lua脚本语言加入—鲁哇客智能挪车号码牌技术升级之路
  3. 想找个娇小可爱的女孩
  4. MATLAB地图工具箱学习总结(二)大圆和恒向线
  5. FIRST集 FOLLOW集和SELECT集
  6. [强烈推荐]ring0下文件解锁强制删除工具
  7. 解决手机不能设置DeviceOwner权限提示already provisioned问题
  8. VBA EXCEL 实现图片保存到ACCESS数据库(OLE对象)
  9. @@identity
  10. HDLC和PPP协议总结