Skip to content

Instantly share code, notes, and snippets.

@pedropuppim
Forked from winuxue/puppeteer-ubuntu-1804.md
Last active December 2, 2021 14:00
Show Gist options
  • Save pedropuppim/ec18f3f8cb7bc7ba821e91ebe5814f04 to your computer and use it in GitHub Desktop.
Save pedropuppim/ec18f3f8cb7bc7ba821e91ebe5814f04 to your computer and use it in GitHub Desktop.
Solution for common dependences issues using puppeteer in ubuntu 18.04 (Bionic)

puppeteer dependeces in ubuntu 18.04 (Bionic)

error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

sudo apt-get install libnss3

error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory

sudo apt-get install libxss1

error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory

apt-get install libasound2

error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory

apt-get install libatk-bridge2.0-0

error while loading shared libraries: libgtk-3.so.0: cannot open shared object file: No such file or directory

apt install libgtk-3-0

other errors

sudo apt-get install -y libgbm-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment