10
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.

4

2 回答 2

8

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

  1. 纱线配置删除代理
  2. npm 配置 rm 代理
  3. npm config rm https-proxy
于 2018-05-23T13:57:42.877 回答
2

我有同样的问题并通过以下步骤解决:

运行终端命令

  1. npm cache clean --force
  2. set http_proxy=
  3. set https_proxy=
  4. yarn config delete proxy
  5. npm config rm https-proxy
  6. npm config rm proxy
  7. 重启你的终端
  8. yarn
  9. yarn –-network-timeout 100000
  10. 重启你的终端。

它对我有用。

于 2020-01-14T19:48:43.933 回答