fix(npm): await 5s before ECONNRESET retry

This commit is contained in:
Rhys Arkins 2020-02-12 13:17:35 +01:00
parent c07fcefb82
commit b8b7b75ad0

View file

@ -231,6 +231,7 @@ export async function getDependency(
// istanbul ignore if
if (err.code === 'ECONNRESET' && retries > 1) {
logger.info({ regUrl }, 'Retrying npm ECONNRESET');
await delay(5000);
return getDependency(name, retries - 1);
}
logger.warn(