Command line utility that retries
yarn when NPM fails with
unexpected end of file error.
This happens quite often for private NPM modules, see https://github.com/yarnpkg/yarn/issues/7521
npm install -g yarn-retry
yarn-retry --wait 500 --attempts 10 -- --frozen-lockfile
It has two options wait (defaults to 500) and attempts (default to 10). Everything after
-- goes directly to yarn.
Based on npm-install-retry utility by José F. Romaniello.