Puppeteer is not able to install: "ERROR: Failed to set up Chromium r782078! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download"

I am trying to install Puppeteer in Windows 10 using the below command and am getting an error.

The command used to install Puppeteer:

npm install --save PUPPETEER 

Error:

ERROR: Failed to set up Chromium r782078! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download. Error: self signed certificate in certificate chain 

I have also tried the below option, but I am still getting the same error.

npm install -g puppeteer --unsafe-perm=true --allow-root 

11 Answers

Note: This is for Ubuntu 18.04 (Bionic Beaver). However, it should be a similar process for Windows though.

Set the environment variable (as the error suggests):

Mac

export PUPPETEER_SKIP_DOWNLOAD='true'

Windows

SET PUPPETEER_SKIP_DOWNLOAD='true'

and then...

npm i puppeteer

7

This works for me:

npm install --ignore-scripts puppeteer 

Set an npm mirror:

npm config set puppeteer_download_host= npm i puppeteer 

It will work.

1

Note: It works for MacBook M1 and Node.js 16

export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true export PUPPETEER_EXECUTABLE_PATH=`which chromium` 
1

Use:

npm install puppeteer --unsafe-perm 

It worked for me.

1

On Windows (PowerShell)

Do this before installation:

$env:PUPPETEER_SKIP_DOWNLOAD="true" 
1

In my case, I was connected to a VPN which caused me issue in installing Puppeteer.

2

Try using this:

npm install --ignore-scripts puppeteer 
2

I had to delete Puppeteer from package.json and redo npm install, in order to make it work.

If you want to run stencil.js and start its developer server, in running the npm install command I had the above error, and by using a recommendation I handled the problem.

1
npm install -g cnpm --registry= cnpm install puppeteer --save 
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like