vue中yarn install报错:info There appears to be trouble with your network connection. Retrying…

问题描述 使用 yarn install 的时候报以下错误info There appears to be trouble with your network connection. Retrying…info There appears to be trouble with your network connection. Retrying…info There appears to be trouble wi

问题描述

使用 yarn install 的时候报以下错误
info There appears to be trouble with your network connection. Retrying…
info There appears to be trouble with your network connection. Retrying…
info There appears to be trouble with your network connection. Retrying…

解决办法

1、网络连接有问题,检查自己的网络是否正常
2、若网络正常,那问题可能出现在代理连接上
3、控制台输入命令 yarn config get registry,查看当前镜像源是不是淘宝源。
3.1. 如果不是淘宝镜像源,就通过命令 yarn config set registry https://registry.npm.taobao.org 将当前镜像源设置为淘宝镜像
3.2.然后重新执行 yarn install
4、如果以上步骤还未解决,那就重新配置
4.1. 安装好后更换淘宝镜像 yarn config set registry https://registry.npm.taobao.org
4.2. 移除原代理
 yarn config delete proxy
  npm config rm proxy
 npm config rm https-proxy

4.3. 安装 cnpm 镜像并使用代理 registry
  安装 cnpm 镜像
    npm install -g cnpm --registry=https://registry.npm.taobao.org
  使用代理 registry
    npm config set registry https://registry.npm.taobao.org
4.4. npm install
 
【网站声明】本站部分内容来源于互联网,旨在帮助大家更快的解决问题,如果有图片或者内容侵犯了您的权益,请联系我们删除处理,感谢您的支持!

相关文档推荐

问题描述 note.js安装依赖包出现 yarn install info No lockfile found 错误,具体内容如下 ➜  vue-next git:(fe853a5a) npm install yarn -gchanged 1 package in 679ms➜  vue-next git:(fe853a5a) yarn install       yarn i
how to unit-test private methods in jquery plugins?(如何对 jquery 插件中的私有方法进行单元测试?)
Parsley.js - Displaying Errors in a Specified Element(Parsley.js - 在指定元素中显示错误)
Is there a way in jQuery to bring a div to front?(jQuery 中有没有办法将 div 放在前面?)
Cannot remove files from file list using JQuery-File-Upload(无法使用 JQuery-File-Upload 从文件列表中删除文件)
export to excel in jquery or jqGrid(在 jquery 或 jqGrid 中导出到 excel)