Yarn -Info There appears to be trouble with your network connection. Retrying

Viewed 3566

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 )

2 Answers

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

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 .

Related