1.0.0-beta.6 • Published 8 years ago

npm-batch-install v1.0.0-beta.6

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

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 1
  • Turn off your anti-virus 2
  • Restart your computer and hope for the best.

1 Hope you know what you're doing 2 Assuming you have admin rights

Install

npm install -g npm-batch-install

Usage

npm-batch-install [options]

OptionDefaultDescription
-B --batch-size=<num>4The batch size

License

MIT