If you are afraid that downloading from the Internet may be slow, you can tell the puppeteer where to download chrome and use a local address.
Use PUPPETEER_DOWNLOAD_HOST to indicate where to download Chrome, and PUPPETEER_SKIP_CHROMIUM_DOWNLOAD to not download Chrome at all.
You can learn more about this in the documentation .
source share