

To skip the download, download into another path, or download a different browser, see Environment variables. Npm ERR! A complete log of this run can be found in: npm i puppeteer or 'yarn add puppeteer' When you install Puppeteer, it downloads a recent version of Chromium (170MB Mac, 282MB Linux, 280MB Win) that is guaranteed to work with the API. There is likely additional logging output above. Npm ERR! This is probably not a problem with npm. > install /usr/local/lib/node_modules/puppeteerĮRROR: Failed to download Chromium r624492! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download. Puppeteer quick start Install and run Puppeteer. Get started Overview of Puppeteer An explanation of what Puppeteer is and the things it can do. Once you have a solid understanding of Puppeteer’s API and how it fits together in the Node.

It can also be configured to use full (non-headless) Chrome or Chromium. There are many ways you can download files with Puppeteer.


First failure (in sudo su mode): npm install -g puppeteer Download all-platform Chromium when npm install (on dev machine) Download Chromium selectively at packaging time (still on dev machine) Force my users to download Chromium at runtime (at first usage for example) The problem is I haven't found any Puppeteer configuration I can use for such purpose. Puppeteer is a Node library which provides a high-level API to control headless Chrome or Chromium over the DevTools Protocol.Which is even stranger cause I explicitly used product: 'chrome' in the launch options.Ĭause the executablePath is something like: node_modules/puppeteer/.local-chromium/mac-756035 which does not exist.I am trying to install puppeteer globally on macOS (Mojave) 10.14.3 “PUPPETEER_PRODUCT=firefox yarn install” to download a supported Firefox browser binary.’ Run “PUPPETEER_PRODUCT=firefox npm install” or Where as in version 5.4.1 I get a different error:Ĭould not find browser revision 809590. Puppeteer is a Node library which provides a high-level API to control headless Chrome or Chromium over the DevTools Protocol. Run “npm install” or “yarn install” to download a browser binary. npmrc to PUPPETEERSKIPCHROMIUMDOWNLOAD '1'. In the same level as package.json, create a. In version 5.0.0 I get the following error:Ĭould not find browser revision 756035. Puppeteer version: 1.2.0 Platform / OS version: Ubuntu 16.04 LTS Node.js version: 8.10.0 (NPM 5.6.0) Add puppeteer as a dependency in package.json. Tried puppeteer versions 5.0.0 and 5.4.1.I have not set the environment variable to skip the download.When using puppeteer.launch(), I found out it is looking for this folder: node_modules/puppeteer/.local-chromium/mac-756035 which does not exist. When installing Puppeteer using npm install puppeteer, it does not download a recent version of Chromium as it is mentioned in the documentation.
