Skip to content

Commit

Permalink
Fixed forgot to add ProxyAgent to node-fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
arika0093 committed Sep 5, 2023
1 parent 15e93de commit ea092ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
Expand Down

0 comments on commit ea092ee

Please sign in to comment.