diff options
author | isaacs <i@izs.me> | 2012-06-29 05:47:31 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-06-29 05:48:11 +0400 |
commit | 419ffa05054fc3956ecad9fe8f124a70fcf935b6 (patch) | |
tree | bd79e6b3ef295de60292c26c231c17a5213512e8 /lib/npm.js | |
parent | 6b8d7d7072aa9c5ff12c59c9e68eda29b8a668b5 (diff) |
Make the fetch retry behavior configurable
Diffstat (limited to 'lib/npm.js')
-rw-r--r-- | lib/npm.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/npm.js b/lib/npm.js index f6460f9ae..589eb17fc 100644 --- a/lib/npm.js +++ b/lib/npm.js @@ -288,6 +288,10 @@ function load (npm, conf, cb) { , E404: npm.E404 , EPUBLISHCONFLICT: npm.EPUBLISHCONFLICT , log: log + , retries: npm.config.get("fetch-retries") + , retryFactor: npm.config.get("fetch-retry-factor") + , retryMinTimeout: npm.config.get("fetch-retry-mintimeout") + , retryMaxTimeout: npm.config.get("fetch-retry-maxtimeout") }) var umask = parseInt(conf.umask, 8) |