nwjs / nw-gyp

native addon build tool for node-webkit
MIT License
195 stars 50 forks source link

Connect through proxy #72

Closed blairconner closed 7 years ago

blairconner commented 9 years ago

Hello,

I'm behind a corporate firewall and can't setup nw-gyp to use it. I don't have any issues with node-gyp. How do I setup a proxy for nw-gyp?

Thank you!

Regards, Blair

cjones26 commented 8 years ago

As per the code in "install.js":

// basic support for a proxy server
var proxyUrl = gyp.opts.proxy
            || process.env.http_proxy
            || process.env.HTTP_PROXY
            || process.env.npm_config_proxy

I was able to get this working by setting the HTTP_PROXY environment variable. On Windows it was very simple and works properly (I used this link as a reference).