yarn icon indicating copy to clipboard operation
yarn copied to clipboard

yarn install info There appears to be trouble with your network connection. Retrying after printing Done

Open TomChan1991 opened this issue 4 years ago • 9 comments

i used verdaccio as private registry in lan

yarn install v1.22.17 warning package.json: No license field warning @g-bits/[email protected]: No license field [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... [4/4] Building fresh packages...

success Saved lockfile. Done in 0.11s. info There appears to be trouble with your network connection. Retrying... info There appears to be trouble with your network connection. Retrying... info There appears to be trouble with your network connection. Retrying...

TomChan1991 avatar Nov 11 '21 12:11 TomChan1991

I also encountered this problem

zykee avatar Nov 16 '21 03:11 zykee

same issue

AlexR0v avatar Nov 29 '21 14:11 AlexR0v

I ran this on and off for the past couple of weeks and a reboot always had it fixed, weird I know but I worked reliably...👍

coodoo avatar Dec 06 '21 21:12 coodoo

it work

yarn config set strict-ssl true

tyaqing avatar Dec 07 '21 06:12 tyaqing

I also encountered this problem

Corgis avatar Jun 20 '22 02:06 Corgis

详细分析过程和解决方案看这里:https://juejin.cn/post/7162077789456662541

尝试以下任一方法(try any of these):

  1. disable-self-update-check $ yarn config set disable-self-update-check true $ yarn install

  2. set lastUpdateCheck $ yarn config set lastUpdateCheck 1e13 $ yarn install

  3. use non-interactive $ yarn install --non-interactive

  4. use proxy $ yarn install --proxy "http://{proxy domain}:{port}" --https-proxy "http://{proxy domain}:{port}"

Whilconn avatar Nov 03 '22 10:11 Whilconn