question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to download Chromium r536395! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.

See original GitHub issue

Steps to reproduce

Tell us about your environment:

  • Puppeteer version: Not installed
  • Platform / OS version: win10x64
  • URLs (if applicable):
  • Node.js version: 8.10.0

What steps will reproduce the problem? I ran npm install --save-dev puppeteer and get a error message as follows:

ERROR: Failed to download Chromium r536395! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
{ Error: self signed certificate in certificate chain
    at TLSSocket.<anonymous> (_tls_wrap.js:1105:38)
    at emitNone (events.js:106:13)
    at TLSSocket.emit (events.js:208:7)
    at TLSSocket._finishInit (_tls_wrap.js:639:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:469:38) code: 'SELF_SIGNED_CERT_IN_CHAIN' }
npm WARN teamtreehouse@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! puppeteer@1.1.1 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the puppeteer@1.1.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

What is the expected result? Puppeteer gets installed

What happens instead? It doesn’t get installed and the error message appears

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:50
  • Comments:36 (3 by maintainers)

github_iconTop GitHub Comments

460reactions
xamgorecommented, Jun 24, 2018
sudo npm install -g puppeteer --unsafe-perm=true --allow-root

Solves the issue to me.

21reactions
victor9000commented, Mar 13, 2018

Same issue on Ubuntu

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR: Failed to download Chromium r686378! Set ...
Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download. after search i will get the solution to run this command sudo npm install ...
Read more >
How to skip Chromium download in Puppeteer? - DEV ...
Step 1 - Set the environment variables. Whenever you install Puppeteer, it will first check for the environment variables listed below: image.
Read more >
Failed to download Chromium r536395! Set ... - cosmix.es
Failed to download Chromium r536395 ! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download. · Issue #2173 · puppeteer/puppeteer.
Read more >
ERROR: Failed to download Chromium r686378!
Then you would utilize Puppeteers Environment Variables to skip the Chromium download and point it to where you manually downloaded Chromium.
Read more >
self_signed_cert_in_chain error npm install - You.com | The AI ...
ERROR: Failed to download Chromium r536395! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download. { Error: self signed certificate in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found