geckodriver is not installing in my corporate firewall
id4automation opened this issue · 7 comments
I am able to download electron, chromedriver and phatonjs . but after that when it tries to download geckodriver it is failing. Need some help on how to fix this.
electron@1.8.7 postinstall C:\Users\A632694\testJS\node_modules\electron
node install.jsgeckodriver@1.1.2 postinstall C:\Users\A632694\testJS\node_modules\geckodriver
node index.jsDownloading geckodriver...
events.js:183
throw er; // Unhandled 'error' event
^
RequestError: getaddrinfo ENOTFOUND github.com github.com:443
at ClientRequest. (C:\Users\A632694\testJS\node_modules\got\index.js:69:21)
at Object.onceWrapper (events.js:315:30)
at emitOne (events.js:116:13)
at ClientRequest.emit (events.js:211:7)
at TLSSocket.socketErrorListener (_http_client.js:387:9)
at emitOne (events.js:116:13)
at TLSSocket.emit (events.js:211:7)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
npm WARN testJS@1.0.0 No description
npm WARN testJS@1.0.0 No repository field.npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! geckodriver@1.1.2 postinstall:node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the geckodriver@1.1.2 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
I found this same issue today. This is I think because the downloader that geckodriver at version 1.1.2 uses doesn't read in HTTP_PROXY / HTTPS_PROXY environment variables. It is only at the most recent version (1.12.2) that these variables get read in (see: webdriverio-community/node-geckodriver#21).
Please can someone resolve this and issue a pull request?
Raised: #74
Thanks and much appreciated.
#74 is now merged and push to npm, please can you grab the latest and confirm this issue is resolved?
I can confirm that I managed to install it behind a proxy & firewall with the HTTP_PROXY and HTTPS_PROXY environment variables set. @id4automation ?
I'm closing this. Thanks for your help