aws-puppeteer-lambda icon indicating copy to clipboard operation
aws-puppeteer-lambda copied to clipboard

UnhandledPromiseRejectionWarning: Error: Failed to launch chrome!

Open hansparsons opened this issue 6 years ago • 2 comments

the tool works great when i zip and publish to AWS, but when i try to run it locally in terminal (maxosx) i get the folllowing error: " UnhandledPromiseRejectionWarning: Error: Failed to launch chrome!" any help getting this running locally would be great!

hansparsons avatar Sep 17 '18 20:09 hansparsons

@hansparsons Comment out executablePath (within the puppeteer.launch function) when running locally. When compressing for production use (Lambda) uncomment executablePath remove the node_modules folder and reinstall the packages using the following command: npm i --ignore-scripts this will prevent node from downloading chrome.

kemelcodes avatar Oct 15 '18 21:10 kemelcodes

can you please update how to deploy it? as it not clear as I don't see any lamda function / handlers

frontr-uk avatar May 02 '19 21:05 frontr-uk