From da5bccbec31592d21c55b28038940b15f15d1daa Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 23 Mar 2023 01:02:53 +0000 Subject: [PATCH] Use mirrors to download Node.js binaries to escape sporadic 404 errors (#3619) Issue Resolved: https://github.com/opensearch-project/OpenSearch-Dashboards/issues/3618 Signed-off-by: Anan Zhuang (cherry picked from commit 99a88e35be216c9b108d75652d1baf4485fd13f7) Signed-off-by: github-actions[bot] # Conflicts: # CHANGELOG.md --- src/dev/build/tasks/nodejs/node_download_info.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dev/build/tasks/nodejs/node_download_info.ts b/src/dev/build/tasks/nodejs/node_download_info.ts index e2101d3453be..73163bc3c30a 100644 --- a/src/dev/build/tasks/nodejs/node_download_info.ts +++ b/src/dev/build/tasks/nodejs/node_download_info.ts @@ -44,7 +44,7 @@ export async function getNodeDownloadInfo(config: Config, platform: Platform) { ? `node-v${version}-win-x64.zip` : `node-v${version}-${arch}.tar.gz`; - const url = `https://nodejs.org/dist/v${version}/${downloadName}`; + const url = `https://mirrors.nodejs.org/dist/v${version}/${downloadName}`; const downloadPath = config.resolveFromRepo('.node_binaries', version, basename(downloadName)); const extractDir = config.resolveFromRepo('.node_binaries', version, arch);