开发者社区> 镜像站> NPM> yarn-retry
yarn-retry
retry yarn when it fails
Last updated a year ago by artemv .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install yarn-retry 
SYNC missed versions from official npm registry.

Build Status

Command line utility that retries yarn command when it fails with unexpected end of file error.

This happens quite often for private NPM modules, see https://github.com/yarnpkg/yarn/issues/7521, https://github.com/yarnpkg/yarn/issues/2738

Installation

yarn global add 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, so you can retry e.g. yarn add:

yarn-retry -- add --dev @myorg/my-package --ignore-engines

Other

Based on battle-tested npm-install-retry utility by José F. Romaniello.

Current Tags

  • 1.2.1                                ...           latest (a year ago)

7 Versions

  • 1.2.1                                ...           a year ago
  • 1.2.0                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (2)
Dependents (0)
None