Download fails when behind SSL inspection corporate proxy
See original GitHub issueInstallation fails due to UNABLE_TO_GET_ISSUER_CERT_LOCALLY. I am behind a corporate proxy that does SSL inspection (with our own certificate authority), so I am not unused to this type of error. However, I have configured npm correctly:
PS C:\Users\ltheisen\git\facility-report-viewer-ui> npm config get cafile
C:\cygwin64\etc\pki\ca-trust\extracted\pem\tls-ca-bundle.pem
Along with the proper proxy settings:
PS C:\Users\ltheisen\git\facility-report-viewer-ui> gci env: | findstr proxy
http_proxy http://gatekeeper-w.mitre.org:80
https_proxy http://gatekeeper-w.mitre.org:80
no_proxy .mitre.org,.portal.local,localhost,mm206678-pc,mm206678-pc.mitre.org,127.0.0.1
And it works for normal installs. It seems like your install.js
respects the https_proxy
environment variable, but ignores the cafile setting. I’m not really surprised as it is an npm config and your code is built to work with npm/yarn/…, but I need a way to provide your installer with my CA file.
Steps to reproduce
Tell us about your environment:
- Puppeteer version: 0.13.0
- Platform / OS version: Windows 10 Enterprise
- URLs (if applicable):
- Node.js version: v9.3.0
What steps will reproduce the problem?
Please include code that reproduces the issue.
npm install --save-dev puppeteer
What is the expected result? Puppeteer gets installed.
What happens instead?
PS C:\Users\ltheisen\git\facility-report-viewer-ui> npm install puppeteer --save-dev
> puppeteer@0.13.0 install C:\Users\ltheisen\git\facility-report-viewer-ui\node_modules\puppeteer
> node install.js
ERROR: Failed to download Chromium r515411! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
{ Error: unable to get local issuer certificate
at TLSSocket.onConnectSecure (_tls_wrap.js:1042:34)
at TLSSocket.emit (events.js:159:13)
at TLSSocket._finishInit (_tls_wrap.js:639:8) code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY' }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! puppeteer@0.13.0 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the puppeteer@0.13.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:7
- Comments:5 (2 by maintainers)
Top GitHub Comments
@lucastheisen the tip-of-tree puppeteer is published to npm as puppeteer@next. Could you please give it a try?
@aslushnikov , it works:
Thank you!