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
Installation
npm install -g yarn-retry
Usage
From command-line:
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.
Other
Based on npm-install-retry utility by José F. Romaniello.