Skip to content

Instantly share code, notes, and snippets.

@lilaw
Last active October 9, 2022 03:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lilaw/dc005c046d45327b3211f6cb921c20ba to your computer and use it in GitHub Desktop.
Save lilaw/dc005c046d45327b3211f6cb921c20ba 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