Skip to content

Command line utility that retries `npm install` when NPM fails with `npm ERR! cb() never called`

Notifications You must be signed in to change notification settings

jfromaniello/npm-install-retry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Build status

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:

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

About

Command line utility that retries `npm install` when NPM fails with `npm ERR! cb() never called`

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •