ERROR: Failed to set up Chromium r901912! Set “PUPPETEER_SKIP_DOWNLOAD“ env variable to skip downloa

created at 08-27-2021 views: 67

description

The following prompt is reported when npm install puppeteer:

ERROR: Failed to set up Chromium r901912! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.
{ Error: read ETIMEDOUT
    at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27) errno: 'ETIMEDOUT', code: 'ETIMEDOUT', syscall: 'read' }

solution

export PUPPETEER_SKIP_DOWNLOAD='true'

Install it like this:

npm i puppeteer

Then you can successfully install it.

created at:08-27-2021
edited at: 08-27-2021: