# npm-batch-install

> Install dependencies in batches

Latest version **1.0.0-beta.6** (published 2016-08-23) · MIT license · 0 weekly downloads

## Install

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

Provides the command `npm-batch-install`.

## 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 | 1.0.0-beta.6 |
| Published | 2016-08-23 |
| First published | 2016-08-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4.0 |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Francis Ifeanyi Okonkwo |
| Maintainers | ifeanyi |
| Keywords | install, retry, batch, EPERM |

## Links

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

## Dependencies (3)

- [chalk](https://npm.io/package/chalk.md) ^1.1.3
- [minimist](https://npm.io/package/minimist.md) ^1.2.0
- [cross-spawn](https://npm.io/package/cross-spawn.md) ^4.0.0

## Recent versions

- 1.0.0-beta.6 (latest) — 2016-08-23
- 1.0.0-beta.5 — 2016-08-22
- 1.0.0-beta.4 — 2016-08-22
- 1.0.0-beta.3 — 2016-08-22
- 1.0.0-beta.2 — 2016-08-22
- 1.0.0-beta.1 — 2016-08-22

## README

# npm-batch-install

> Install dependencies in batches

## Why?
Installing a project's entire dependency tree at once can be error prone in certain environments (*cough* windows), as an error finalizing a single package will force a rollback of the entire operation.

`npm-batch-install` tries installing dependencies in batches, if a batch fails it tries to install each package in the failing batch individually before giving up and marking it as failed.

You many then install the failed packages using one or more of the techniques below:
* `npm cache clear`
* `npm install --force` <sup>1</sup>
* Turn off your anti-virus <sup>2</sup>
* Restart your computer and hope for the best.

<small>1 Hope you know what you're doing </small> <br />
<small>2 Assuming you have admin rights</small>


## Install
`npm install -g npm-batch-install`

## Usage
`npm-batch-install [options]`

| Option | Default | Description
|---|---:|---|
|`-B --batch-size=<num>`|`4`|The batch size|

## License
[MIT](https://github.com/ifeanyi/npm-batch-install/blob/master/LICENSE)

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