hronro / protoc-gen-grpc-web-npm

A protoc-gen-grpc-web binary for npm.
9 stars 8 forks source link

unable to download file in postinstall behind proxy #14

Open Ben-Avrahami opened 8 months ago

Ben-Avrahami commented 8 months ago

i get an error Downloading https://github.com/grpc/grpc-web/releases/download/1.4.2/protoc-gen-grpc-web-1.4.2-windows-x86_64.exe npm ERR! connect ETIMEDOUT

im behind a proxy, and cant find a way to make the postinstall run behind a proxy, need a way to add proxy.

hronro commented 8 months ago

I plan to make a major rewrite by eliminating the post-install script and utilizing optionalDependencies instead. This change will involve publishing the grpc-web binaries to the NPM registry, ensuring that users without internet access but using internal NPM registry mirrors, as well as those using proxies, can also benefit from it.

The rewrite may not happen right now, so as a workaround for now, you can use something like proxychains-ng to force the whole node.js process using your proxy.