mongodb-js / mongodb-prebuilt

Install MongoDB prebuilt package using npm https://npmjs.org/package/mongodb-prebuilt
ISC License
56 stars 50 forks source link

Use proxy environment variable #34

Closed Dinistro closed 7 years ago

Dinistro commented 7 years ago

Currently you can only find the environment variable npm_config_https_proxy in the install script. In some special cases, it's possible that npm itself doesn't use a proxy, but the install script should. So is it possible to add

if (argv.http_proxy || process.env.npm_config_https_proxy || process.env.https_proxy) {

in the install script?

winfinit commented 7 years ago

published 5.0.7 with requested change