Skip to content

Commit

Permalink
Use mirrors to download Node.js binaries to escape sporadic 404 errors (
Browse files Browse the repository at this point in the history
#3619) (#3664)

Issue Resolved:
#3618

Signed-off-by: Anan Zhuang <[email protected]>
(cherry picked from commit 99a88e3)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 47e816a commit 36f64cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dev/build/tasks/nodejs/node_download_info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 36f64cd

Please sign in to comment.