3

I have been trying to do the quick start guide for Vue (CLI) but kept getting this error

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

and I see all answer in the same issue in this link , but doesn't fix. ( OS: windows )

M. Behnasr
  • 37
  • 1
  • 5

2 Answers2

5

In my case, I had added a private npm repository into ~/.npmrc in the past, so yarn try to find the package in that repository. And unfortunately the repository's no longer available, that makes yarn couldn't find the package. Solution:

rm ~/.npmrc
Son Nguyen
  • 187
  • 1
  • 6
  • thank you for your answer, I reset my windows and then work . I think in this file I don't have ~/.npmrc file – M. Behnasr Oct 03 '21 at 09:33
3

In my case I've tried to build app inside Node Docker container. Adding option --network=host was the solution in my case.

docker build --network=host --progress=plain .

Dmitry
  • 186
  • 3
  • 4