Yarn - Global add command fails due to time outs


#1

We’re having an issue with our builds, they seem to be failing when we’re adding a global package.

Here’s the output for the failed command:

yarn global add serverless@1.5.0
yarn global v0.18.1
[1/4] Resolving packages...
⠁ ⠂ serverless@1.5.0⠄ serverless@1.5.0⡀ serverless@1.5.0⢀ serverless@1.5.0⠠ serverless@1.5.0⠐ serverless@1.5.0⠈ serverless@1.5.0⠁ serverless@1.5.0⠂ serverless@1.5.0⠄ serverless@1.5.0⡀ serverless@1.5.0⢀ serverless@1.5.0⠠ serverless@1.5.0⠐ serverless@1.5.0⠈ serverless@1.5.0⠁ serverless@1.5.0⠂ serverless@1.5.0⠄ serverless@1.5.0⡀ serverless@1.5.0⢀ serverless@1.5.0⠠ serverless@1.5.0⠐ serverless@1.5.0⠈ serverless@1.5.0⠁ serverless@1.5.0⠂ serverless@1.5.0⠄ serverless@1.5.0⡀ serverless@1.5.0⢀ serverless@1.5.0⠠ serverless@1.5.0⠐ serverless@1.5.0⠈ serverless@1.5.0⠁ serverless@1.5.0⠂ serverless@1.5.0⠄ serverless@1.5.0⡀ serverless@1.5.0⢀ serverless@1.5.0⠠ serverless@1.5.0⠐ serverless@1.5.0⠈ serverless@1.5.0⠁ serverless@1.5.0⠂ serverless@1.5.0⠄ serverless@1.5.0⡀ serverless@1.5.0⢀ serverless@1.5.0⠠ serverless@1.5.0⠐ serverless@1.5.0⠈ serverless@1.5.0⠁ serverless@1.5.0⠂ serverless@1.5.0⠄ serverless@1.5.0⡀ serverless@1.5.0⢀ serverless@1.5.0⠠ serverless@1.5.0⠐ serverless@1.5.0⠈ serverless@1.5.0⠁ serverless@1.5.0⠂ serverless@1.5.0⠄ serverless@1.5.0⡀ serverless@1.5.0⢀ serverless@1.5.0⠠ serverless@1.5.0⠐ serverless@1.5.0⠈ serverless@1.5.0⠁ serverless@1.5.0⠂ serverless@1.5.0⠄ serverless@1.5.0⡀ serverless@1.5.0⢀ serverless@1.5.0⠠ serverless@1.5.0⠐ serverless@1.5.0⠈ serverless@1.5.0⠁ serverless@1.5.0⠂ serverless@1.5.0⠄ serverless@1.5.0⡀ serverless@1.5.0⢀ serverless@1.5.0⠠ serverless@1.5.0⠐ serverless@1.5.0⠈ serverless@1.5.0⠁ serverless@1.5.0⠂ serverless@1.5.0⠄ serverless@1.5.0⡀ serverless@1.5.0⢀ serverless@1.5.0⠠ serverless@1.5.0⠐ serverless@1.5.0⠈ serverless@1.5.0⠁ serverless@1.5.0⠂ serverless@1.5.0⠄ serverless@1.5.0⡀ serverless@1.5.0⢀ serverless@1.5.0⠠ serverless@1.5.0⠐ serverless@1.5.0⠈ serverless@1.5.0⠁ serverless@1.5.0⠂ serverless@1.5.0⠄ serverless@1.5.0⡀ serverless@1.5.0⢀ serverless@1.5.0⠠ serverless@1.5.0⠐ serverless@1.5.0⠈ serverless@1.5.0⠁ serverless@1.5.0⠂ serverless@1.5.0⠄ serverless@1.5.0⡀ serverless@1.5.0⢀ serverless@1.5.0⠠ serverless@1.5.0⠐ serverless@1.5.0⠈ serverless@1.5.0⠁ serverless@1.5.0⠂ serverless@1.5.0⠄ serverless@1.5.0⡀ serverless@1.5.0⢀ serverless@1.5.0⠠ serverless@1.5.0⠐ serverless@1.5.0⠈ serverless@1.5.0⠁ serverless@1.5.0⠂ serverless@1.5.0⠄ serverless@1.5.0⡀ serverless@1.5.0⢀ serverless@1.5.0⠠ serverless@1.5.0⠐ serverless@1.5.0⠈ serverless@1.5.0⠁ serverless@1.5.0⠂ serverless@1.5.0⠄ serverless@1.5.0⡀ serverless@1.5.0⢀ serverless@1.5.0⠠ serverless@1.5.0⠐ serverless@1.5.0⠈ serverless@1.5.0⠁ serverless@1.5.0⠂ serverless@1.5.0⠄ serverless@1.5.0⡀ serverless@1.5.0⢀ serverless@1.5.0⠠ serverless@1.5.0⠐ serverless@1.5.0⠈ serverless@1.5.0⠁ serverless@1.5.0⠂ serverless@1.5.0⠄ serverless@1.5.0⡀ serverless@1.5.0⢀ serverless@1.5.0⠠ serverless@1.5.0⠐ serverless@1.5.0⠈ serverless@1.5.0⠁ serverless@1.5.0⠂ serverless@1.5.0⠄ serverless@1.5.0⡀ serverless@1.5.0⢀ serverless@1.5.0⠠ serverless@1.5.0⠐ serverless@1.5.0⠈ serverless@1.5.0⠁ serverless@1.5.0⠂ serverless@1.5.0⠄ serverless@1.5.0⡀ serverless@1.5.0⢀ serverless@1.5.0⠠ serverless@1.5.0⠐ serverless@1.5.0⠈ serverless@1.5.0⠁ serverless@1.5.0⠂ serverless@1.5.0⠄ serverless@1.5.0⡀ serverless@1.5.0⢀ serverless@1.5.0⠠ serverless@1.5.0⠐ serverless@1.5.0⠈ serverless@1.5.0⠁ serverless@1.5.0⠂ serverless@1.5.0⠄ serverless@1.5.0⡀ serverless@1.5.0⢀ serverless@1.5.0⠠ serverless@1.5.0⠐ serverless@1.5.0⠈ serverless@1.5.0⠁ serverless@1.5.0⠂ serverless@1.5.0⠄ serverless@1.5.0⡀ serverless@1.5.0⢀ serverless@1.5.0⠠ serverless@1.5.0

error An unexpected error occurred: “https://registry.yarnpkg.com/serverless: connect ETIMEDOUT 104.16.59.173:443”.

info If you think this is a bug, please open a bug report with the information provided in "/home/ubuntu/.config/yarn/global/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
yarn global add serverless@1.5.0 returned exit code 1
Action failed: yarn global add serverless@1.5.0

If we rebuild it might succeed, however it seems to be happening on most of builds at this time.

Also it doesn’t matter what package we’re adding, it seems to happen on any command.


#2