Failed to launch chrome in puppeteer node js
Failed to launch chrome in puppeteer node js
I uploaded my code on EC2 aws. After uploading on ec2. It did not working.It is working correctly on localhost.I have tested many ways.Please suggest me the right way.
This is the screenshot of cmd.
click on the given link and see the information.
– Imran Bilal
Sep 11 '18 at 8:00
Read the line starting with TROUBLESHOOTING.
– weirdpanda
Sep 11 '18 at 8:00
It did not working.I have test already.After that i uploaded here.
– Imran Bilal
Sep 11 '18 at 8:03
1 Answer
1
The error clearly mentions that it can not find libX11-xcb.so.1
. A simple Google search showed this:
libX11-xcb.so.1
sudo apt-get update && sudo apt-get install gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
I hope it solves it.
Good Thanks.Its working
– Imran Bilal
Sep 11 '18 at 8:05
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
It tells you where to go and what to do. You haven't provided us with any information whatsoever.
– weirdpanda
Sep 11 '18 at 7:58