I used npm i puppeteer as stated in the Documentation and I\'m getting the following error:
npm i puppeteer
(node:2066) UnhandledPromiseRejectionWarning: Error: Chr
Confirming solutions presented here almost work. Here's my setup. Ubuntu 16.
Install chromium browser from command line then:
const browser = await puppeteer.launch({ executablePath: "/usr/bin/chromium-browser", args: ['--no-sandbox'] });