“纱线安装"导致“网络连接问题" [英] 'Yarn install' cause 'trouble with network connection'

查看:50
本文介绍了“纱线安装"导致“网络连接问题"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

yarn install v0.21.3
[1/4] Resolving packages...
warning There appears to be trouble with your network connection. Retrying...
warning There appears to be trouble with your network connection. Retrying...
warning There appears to be trouble with your network connection. Retrying...
warning There appears to be trouble with your network connection. Retrying...
warning There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://github.com/igorklopov/node-resolve.git: tunneling socket could not be established, cause=write EPROTO 140399640340352:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:794:\n".

首先我认为这可能是代理问题所以我添加了我的公司代理设置:

First i thought that this may be proxy issue So I've added my corporate proxy settings:

yarn config set proxy http://proxy.dvfu.ru:3128
yarn config set https-proxy https://proxy.dvfu.ru:3128

但是什么都没发生,还是上面的错误.

But nothing happened, still have the error above.

推荐答案

试试下面这三个命令.它对我有用.

Try below this three commands. Its worked for me.

  1. 纱线配置删除代理
  2. npm 配置 rm 代理
  3. npm 配置 rm https-proxy

这篇关于“纱线安装"导致“网络连接问题"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆