diff --git a/lib/datasource/npm/get.ts b/lib/datasource/npm/get.ts index 488853eba521c2585047c82cc33ba9483d2ef479..cc4221890c8c0499c6ec49f409239182f0cf22f1 100644 --- a/lib/datasource/npm/get.ts +++ b/lib/datasource/npm/get.ts @@ -108,19 +108,7 @@ export async function getDependency( try { const raw = await got(pkgUrl, { json: true, - retry: { - errorCodes: [ - 'ECONNRESET', - 'ETIMEDOUT', - 'ECONNRESET', - 'EADDRINUSE', - 'ECONNREFUSED', - 'EPIPE', - 'ENOTFOUND', - 'ENETUNREACH', - 'EAI_AGAIN', - ], - }, + retry: 5, headers, }); const res = raw.body;