I tried to install a package with yarn earlier today and I got this
yarn install yarn install v1.9.4 [1/4]
retrying few times worked out for me on similar issue.