sean-hill / aws-puppeteer-lambda

Tooling that allows puppeteer v1.4.0 to run within the AWS Lambda environment.
38 stars 3 forks source link

UnhandledPromiseRejectionWarning: Error: Failed to launch chrome! #2

Open hansparsons opened 6 years ago

hansparsons commented 6 years ago

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!

kemelcodes commented 6 years ago

@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.

frontr-uk commented 5 years ago

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