Skip to content

ifeanyi/npm-batch-install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]

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

License

MIT

About

Piecemeal installation of npm dependencies

Resources

License

Stars

Watchers

Forks

Packages

No packages published