I used npm i puppeteer
as stated in the Documentation
and I\'m getting the following error:
(node:2066) UnhandledPromiseRejectionWarning: Error: Chr
In my case, it worked after deleting node_modules folder and package-lock.json file and running npm install again.
I solved it like this:
const browser = await puppeteer.launch({ executablePath: "./node_modules/puppeteer/.local-chromium/win64-656675/chrome-win/chrome.exe"});
note the win64-656675 in the path, if you're on a different operating system you will need to point to the appropriate folder.
puppeteer version: 1.16.0