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
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.
1Note: It works for MacBook M1 and Node.js 16
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true export PUPPETEER_EXECUTABLE_PATH=`which chromium` 1Use:
npm install puppeteer --unsafe-perm It worked for me.
1On Windows (PowerShell)
Do this before installation:
$env:PUPPETEER_SKIP_DOWNLOAD="true" 1In my case, I was connected to a VPN which caused me issue in installing Puppeteer.
2Try using this:
npm install --ignore-scripts puppeteer 2I 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.
npm install -g cnpm --registry= cnpm install puppeteer --save 1