Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

puppeteer 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 below command and getting an error.

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 below option, still getting the same error

npm install -g puppeteer --unsafe-perm=true --allow-root
like image 256
user3563459 Avatar asked Jul 31 '20 07:07

user3563459


2 Answers

Note this is for Ubuntu 18, however, it should be a similar process for Windows though.

Set the environment variable (as the error suggests):

export PUPPETEER_SKIP_DOWNLOAD='true'

and then...

npm i puppeteer

like image 131
CIAN STEENKAMP Avatar answered Sep 17 '22 15:09

CIAN STEENKAMP


npm install puppeteer --unsafe-perm

It worked for me

like image 31
Oakley Z Avatar answered Sep 18 '22 15:09

Oakley Z