vue中yarn install报错:info There appears to be trouble with you

问题描述 使用 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

问题描述

使用 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
 
本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

在JavaScript中,我们有多种方法可以删除数组中的指定元素。以下给出了5种常见的方法并提供了相应的代码示例: 1.使用splice()方法: let array = [0, 1, 2, 3, 4, 5];let index = array.indexOf(2);if (index -1) { array.splice(index, 1);}// array = [0,
layui中表单会自动刷新的问题,因为用到layui的表单,遇到了刷新的问题所以记录一下: script layui.use(['jquery','form','layer'], function(){ var $ = layui.jquery, layer=layui.layer, form = layui.form; form.on('submit(tijiao)', function(data){ a
问题描述: 在javascript中引用js代码,然后导致反斜杠丢失,发现字符串中的所有\信息丢失。比如在js中引用input type=text onkeyup=value=value.replace(/[^\d]/g,) ,结果导致正则表达式中的\丢失。 问题原因: 该字符串含有\,javascript对字符串进行了转
如果content取的的事当前页面元素内容时,type类型应该为1 layer.open({type: 1,title: '内容区域',content: $('#DIV_EditUserInfo'), // 设置跳转的div,跳转到对应的页面area: ["920px", "250px"],}); 如果content取的的路径,或者某个页面,type类型应该为
如果你想在 layui 的 table 列表中增加 edit=date 属性但不生效,可能是以下问题导致的: 1. 缺少日期组件的初始化 如果想在表格中使用日期组件,需要在页面中引入 layui 的日期组件,并初始化: script type="text/javascript" src="/layui/layui.js"/scrip
quot;Each child in an array should have a unique key propquot; only on first time render of page(“数组中的每个孩子都应该有一个唯一的 key prop仅在第一次呈现页面时)