Defaults to /chromium, where is Puppeteer's cache directory. PUPPETEER_DOWNLOAD_PATH - specifies the path for the downloads folder.Note: this includes protocol and might even include path prefix. PUPPETEER_DOWNLOAD_HOST - specifies the URL prefix that is used to download Chromium.PUPPETEER_TMP_DIR - defines the directory to be used by Puppeteer for creating temporary files.PUPPETEER_SKIP_CHROMIUM_DOWNLOAD - do not download bundled Chromium during installation step.Defaults to os.homedir()/.cache/puppeteer. PUPPETEER_CACHE_DIR - defines the directory to be used by Puppeteer for caching.HTTP_PROXY, HTTPS_PROXY, NO_PROXY - defines HTTP proxy settings that are used to download and run the browser.If Puppeteer doesn't find them in the environment during the installation step, a lowercased variant of these variables will be used from the npm config. Puppeteer looks for certain environment variables for customizing behavior. For a version of Puppeteer without installation, see puppeteer-core. When you install Puppeteer, it automatically downloads a recent version of Chromium (~170MB macOS, ~282MB Linux, ~280MB Windows) that is guaranteed to work with Puppeteer. # or `yarn add puppeteer` # or `pnpm i puppeteer`
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |