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:
- meteor/meteor#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+
- npm/npm#2701
and still fails.
npm install -g npm-install-retry
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.
MIT 2013 - José F. Romaniello