[js/node] update install script to allow use proxy#23242
Conversation
### Description Use `https.get` instead of `fetch` in ORT Nodejs binding package install script. ### Motivation and Context According to discussions in #23232, the package `global-agent` cannot work with `fetch` API. To make it work with the proxy agent, this PR replaces the `fetch` API with `https.get` in the install script.
### Description Use `https.get` instead of `fetch` in ORT Nodejs binding package install script. ### Motivation and Context According to discussions in microsoft#23232, the package `global-agent` cannot work with `fetch` API. To make it work with the proxy agent, this PR replaces the `fetch` API with `https.get` in the install script.
### Description Use `https.get` instead of `fetch` in ORT Nodejs binding package install script. ### Motivation and Context According to discussions in #23232, the package `global-agent` cannot work with `fetch` API. To make it work with the proxy agent, this PR replaces the `fetch` API with `https.get` in the install script.
### Description Use `https.get` instead of `fetch` in ORT Nodejs binding package install script. ### Motivation and Context According to discussions in #23232, the package `global-agent` cannot work with `fetch` API. To make it work with the proxy agent, this PR replaces the `fetch` API with `https.get` in the install script.
|
While I do not get the error message anymore, the script just hangs forever now. If I ctrl+c the running |
From the error message it can only tell that an ongoing download is cancelled. Is your proxy setting working actually? |
It works for other packages, npm downloads everything, it just hangs on the |
could you check if if you check the code, you can see that script/install.js uses https.get to download the URL and it that hangs I am not sure what we can do. |
Description
Use
https.getinstead offetchin ORT Nodejs binding package install script.Motivation and Context
According to discussions in #23232, the package
global-agentcannot work withfetchAPI. To make it work with the proxy agent, this PR replaces thefetchAPI withhttps.getin the install script.