



Puppeteer is commonly used to automate testing, archive webpage data, and generate screenshots of live web content. Recent releases also include Firefox support. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. Puppeteer is a Node.js library which lets you interact with the Chrome web browser. (node:36178) DeprecationWarning: Unhandled promise rejections are deprecated. To terminate the node process on unhandled promise rejection, use the CLI flag `-unhandled-rejections=strict` (see ). This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with. (node:36178) UnhandledPromiseRejectionWarning: Unhandled promise rejection.

Run "PUPPETEER_PRODUCT=firefox npm install" or "PUPPETEER_PRODUCT=firefox yarn install" to download a supported Firefox browser binary.Īt ChromeLauncher.launch (/Users/ethan/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.js:86:23)Īt async getArtist (/Users/ethan/Documents/html-js/SoundCloud-Terminal/searchArtist.js:13:21)Īt async /Users/ethan/Documents/html-js/SoundCloud-Terminal/searchArtist.js:57:23 puppeteerrc.cjs (or nfig.(node:36178) UnhandledPromiseRejectionWarning: Error: Could not find browser revision 800071. 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
