From f8c3f71cfe03d669412d3bc625e6eedf0b279c3a Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Wed, 2 Oct 2024 10:14:51 -0700 Subject: [PATCH] Increase node download timeout --- scripts/vendor-node.cjs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/vendor-node.cjs b/scripts/vendor-node.cjs index 34939501..1cf92a81 100644 --- a/scripts/vendor-node.cjs +++ b/scripts/vendor-node.cjs @@ -4,7 +4,7 @@ const Downloader = require('nodejs-file-downloader'); const { rmSync, cpSync, mkdirSync, existsSync } = require('node:fs'); const { execSync } = require('node:child_process'); -const NODE_VERSION = 'v22.5.1'; +const NODE_VERSION = 'v22.9.0'; // `${process.platform}_${process.arch}` const MAC_ARM = 'darwin_arm64'; @@ -53,7 +53,12 @@ rmSync(tmpDir, { recursive: true, force: true }); (async function () { // Download GitHub release artifact - const { filePath } = await new Downloader({ url, directory: tmpDir }).download(); + console.log('Downloading NodeJS at', url); + const { filePath } = await new Downloader({ + url, + directory: tmpDir, + timeout: 1000 * 60 * 2, + }).download(); // Decompress to the same directory await decompress(filePath, tmpDir, {});