Puppeteer works on Mac, but not on VPS with Ubuntu
I have a Puppeteer program that works perfectly on my local machine running macOS, but it fails to run on a VPS with Ubuntu 18.04.
When I try to run it, I get the following error: "Error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory."
Answers
William Moore
The error indicates that the necessary libraries aren't installed on your VPS.
If you encounter similar errors afterward, continue installing the missing libraries until everything works.