
So they are 100% confirmed to work, at least, in our testing environment, which is Ubuntu, but we can't confirm about yours. To solve puppeteer installation errors, there are a lot of solutions, but we are sharing only the ones we tried and tested. Often, there are bugs and only way to deal with is to upgrade or downgrade to move to a more stable version. General rule of thumb solutionĬheck Node version, Chromium version and Puppeteer version. The goal of this puppeteer tutorial is to fix them and install puppeteer without any errors. If you are reading this, chances are you are stuck with an error in the headless chromium installation of Puppeteer which appears to be too common. It can help your Node js and Javascript based application scrape content from the web or, screenshot pages, in a predictable and reliable way. puppeteerrc.cjs (or is a popular js based Node module that lets you interact with Chromium in a headless manner. Puppeteer uses several defaults that can be customized through configurationįor example, to change the default cache directory Puppeteer uses to installīrowsers, you can add a. Include $HOME/.cache into the project's deployment.įor a version of Puppeteer without the browser installation, see Your project folder (see an example below) because not all hosting providers

Heroku, you might need to reconfigure the location of the cache to be within If you deploy a project using Puppeteer to a hosting provider, such as Render or The browser is downloaded to the $HOME/.cache/puppeteer folderīy default (starting with Puppeteer v19.0.0). When you install Puppeteer, it automatically downloads a recent version ofĬhrome for Testing (~170MB macOS, ~282MB Linux, ~280MB Windows) that is guaranteed to
