-
Notifications
You must be signed in to change notification settings - Fork 6
yarn: trouble with network connection
Andrea Campo edited this page Jun 5, 2024
·
4 revisions
During the yarn install
script the following text is displayed
[1/5] Validating package.json...
[2/5] Resolving packages...
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...
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.yarnpkg.com/
This is fixed by adding the correct proxy to the yarn configuration:
yarn config set http-proxy <proxy>
yarn config set https-proxy <proxy>
If the proxy is not the issue, try cleaning the cache and extending the timeout
yarn cache clean
yarn install --network-timeout 1000000
Last edit by Andrea CAMPO on November 4 2022