I'm using Puppetter module to scrape some data using Nodejs. It was working fine on my Macbook but when I deployed the build on AWS EC2 instance and hit that route which was scraping data. It started throwing error
error while loading shared libraries: libgbm.so.1: cannot open shared object file
sudo apt-get update
sudo apt-get install -y libgbm-dev
Above command fixed my problem. While doing some research on this issue I also found some other useful links which might help someone.
Answer which helped me
Official Puppeteer Github Guide for different Platforms
Medium Tutorial