Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'Yarn install' cause 'trouble with network connection'

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.

like image 595
nuT707 Avatar asked Mar 28 '17 05:03

nuT707


People also ask

What's Yarn install?

yarn install is used to install all dependencies for a project. This is most commonly used when you have just checked out code for a project, or when another developer on the project has added a new dependency that you need to pick up. If you are used to using npm you might be expecting to use --save or --save-dev .

What is .yarnrc file?

yarnrc files allow you to configure additional Yarn features. The config command may also be used to set these options. Yarn will merge . yarnrc files up the file tree.

How do you remove Yarn?

Running yarn remove foo will remove the package named foo from your direct dependencies updating your package. json and yarn. lock files in the process. Other developers working on the project can run yarn install to sync their own node_modules directories with the updated set of dependencies.


1 Answers

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
like image 146
Sonam Maniar Avatar answered Sep 20 '22 22:09

Sonam Maniar