'Yarn install' cause 'trouble with network connection'

nuT707 picture nuT707 · Mar 28, 2017 · Viewed 11.5k times · Source
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.

Answer

Sonam Maniar picture Sonam Maniar · May 23, 2018

Try below this three commands. Its worked for me.

  1. yarn config delete proxy
  2. npm config rm proxy
  3. npm config rm https-proxy