Closed Trojaner closed 1 month ago
Wrong repository (this occurred on v1), and it's likely a network error on your side or your registry's side.
I have the same issue on my MacBook yarn version v1.22.22 npm: '10.7.0' node: '18.20.3'
I figured out the problem was the slow network and the packages being installed were very large.
Try --network-timeout
option when running yarn install
Self-service
Describe the bug
On our docker-based CI builds @mui/icons-material@5.16.7 randomly fails to install for some reason. Is it possible that our server IP or subnet is blocked by the yarn registry?
To reproduce
Note: I cannot reproduce it locally. Only on the server.
yarn init -2 yarn add @mui/icons-material@5.16.7
Environment
Additional context
44.86 [2/4] Fetching packages... 78.41 info There appears to be trouble with your network connection. Retrying... 111.6 info There appears to be trouble with your network connection. Retrying... 144.7 info There appears to be trouble with your network connection. Retrying... 204.0 info There appears to be trouble with your network connection. Retrying... 239.8 error An unexpected error occurred: "https://registry.yarnpkg.com/@mui/icons-material/-/icons-material-5.16.7.tgz: ESOCKETTIMEDOUT". 239.8 info If you think this is a bug, please open a bug report with the information provided in "/build/yarn-error.log". 239.8 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.