ESOCKETTIMEDOUT error while yarn install command

I'm having troubles with yarn but only on one computer.

When I run yarn install some packages can't be downloaded and I have this error : ESOCKETTIMEDOUT :

enter image description here

At first I just thought that there were some issues at the repository but:

  1. I can download the package through a web browser

  2. I didn't have any issue with another computer

I tried with the latest version of yarn too and still have this error.

1:


It's network problem I think you use the default timeout

A solution will be in .yarnrc file add that line

 network-timeout 600000

if 600000 didn't work try to increase and if .yarnrc not there then create it