From aa8877d9b07c66d2d9d9af2c5a73c53f1683373e Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Tue, 18 Sep 2018 15:59:05 -0700 Subject: [PATCH] Make npm install timeout configurable --- .circleci/npm-install-retry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/npm-install-retry.js b/.circleci/npm-install-retry.js index ae3220d7348..3240aa2cbf2 100755 --- a/.circleci/npm-install-retry.js +++ b/.circleci/npm-install-retry.js @@ -6,7 +6,7 @@ let spawn = require('child_process').spawn; //USE: ./index.js [... NPM ARGS] // -let timeout = process.argv[2] || 60000; +let timeout = process.argv[2] || process.env.NPM_INSTALL_TIMEOUT || 60000; let attempts = process.argv[3] || 3; let args = process.argv.slice(4); if (args.length === 0) {