Yarn install is failing with network connection issue from today

We are suddenly getting the following error –

yarn install v1.22.10
info No lockfile found.
[1/4] :mag: 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://aws-amplify/%2Fpushnotification: getaddrinfo ENOTFOUND aws-amplify”.
info If you think this is a bug, please open a bug report with the information provided in “/Users/distiller/project/gethai-app/yarn-error.log”.
info Visit yarn install | Yarn for documentation about this command.
Exited with code exit status 1’

Inorder to resolve this, I tried out a few changes like

  • added a network timeout for yarn install
  • removed / deleted the yarn.lock

But, none of these help. It started suddenly from today. There was no change config.yml file as compared to yesterday when it was working.