Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vdloc/150524176ac4ffcb9521c343674066c8 to your computer and use it in GitHub Desktop.
Save vdloc/150524176ac4ffcb9521c343674066c8 to your computer and use it in GitHub Desktop.
fix puppeteer dependencies in WSL2 ubuntu 20.04
 ldd ./node_modules/puppeteer/.local-chromium/linux-901912/chrome-linux/chrome | grep no
        libnss3.so => not found
        libnssutil3.so => not found
        libsmime3.so => not found
        libnspr4.so => not found
        libatk-1.0.so.0 => not found
        libatk-bridge-2.0.so.0 => not found
        libcups.so.2 => not found
        libxkbcommon.so.0 => not found
        libgbm.so.1 => not found
        libpango-1.0.so.0 => not found
        libcairo.so.2 => not found
        libatspi.so.0 => not found

run the the following command.

sudo apt-get install  libcairo2  libpango-1.0-0 libxkbcommon-x11-0  libgbm-dev libatk-bridge2.0-0 libcups2 libnss3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment