# npm-install-retry

> retry npm install when it fails

Latest version **2.0.0** (published 2018-03-01) · 0 weekly downloads

## Install

```sh
npm install npm-install-retry
pnpm add npm-install-retry
yarn add npm-install-retry
bun add npm-install-retry
```

Provides the command `npm-install-retry`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2018-03-01 |
| First published | 2013-06-28 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 21 |
| Author | José F. Romaniello |
| Maintainers | jfromaniello |

## Links

- npm: https://www.npmjs.com/package/npm-install-retry
- Repository: https://github.com/jfromaniello/npm-install-retry
- Homepage: https://github.com/jfromaniello/npm-install-retry#readme
- Issues: https://github.com/jfromaniello/npm-install-retry/issues
- npm.io page: https://npm.io/package/npm-install-retry

## Dependencies (2)

- [colors](https://npm.io/package/colors.md) ~0.6.0-1
- [commander](https://npm.io/package/commander.md) ~1.1.1

## Recent versions

- 2.0.0 (latest) — 2018-03-01
- 1.1.0 — 2016-11-04
- 1.0.2 — 2015-10-14
- 1.0.1 — 2015-10-13
- 1.0.0 — 2014-12-01
- 0.0.6 — 2013-07-02
- 0.0.5 — 2013-06-29
- 0.0.4 — 2013-06-29
- 0.0.3 — 2013-06-29
- 0.0.2 — 2013-06-29
- 0.0.1 — 2013-06-28
- 0.0.0 — 2013-06-28

## README

[![Build Status](https://travis-ci.org/jfromaniello/npm-install-retry.svg?branch=master)](https://travis-ci.org/jfromaniello/npm-install-retry)

![Build status](https://ci.appveyor.com/api/projects/status/sc7937we6gb0mwoc?svg=true)

Command line utility that retries  `npm install` when NPM fails with flaky errors: 
* `npm ERR! cb() never called`,
* `npm ERR! errno ECONNRESET`,
* `npm ERR! shasum check failed`,
* `npm ERR! code EINTEGRITY`

This happens sporadically and has been reported many times:

-  https://github.com/meteor/meteor/issues/1190
-  https://github.com/isaacs/npm/issues/2907
-  https://github.com/isaacs/npm/issues/3269
-  https://github.com/npm/npm/issues?utf8=%E2%9C%93&q=ECONNRESET+
-  https://github.com/npm/npm/issues/2701

and still fails.


## Installation

	npm install -g  npm-install-retry

## Usage

From command-line:

	npm-install-retry --wait 500 --attempts 10 -- --production

It has two options wait (defaults to 500) and attempts (default to 10). Everything after `--` goes directly to npm.

## License

MIT 2013 - José F. Romaniello

---
_Source: https://npm.io/package/npm-install-retry · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
