From ea092ee4caa6d57bed849fa54b41fdbd128cbdba Mon Sep 17 00:00:00 2001 From: arika Date: Tue, 5 Sep 2023 08:40:06 +0000 Subject: [PATCH] Fixed forgot to add ProxyAgent to node-fetch --- scripts/postinstall.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/postinstall.js b/scripts/postinstall.js index 4f51903fd..d8f47958d 100644 --- a/scripts/postinstall.js +++ b/scripts/postinstall.js @@ -124,7 +124,7 @@ async function main() { const untar = tar.x({ cwd: binDir }, [binName]); console.info("Downloading", url); - const resp = await fetch(url); + const resp = await fetch(url, {agent: new ProxyAgent()}); const hash = createHash("sha256"); const pkgNameWithPlatform = `${pkg.name}_${platform}_${arch}.tar.gz`;