Skip to content

Instantly share code, notes, and snippets.

@jnbdz
Created October 16, 2023 17:44
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 jnbdz/40ac0ca8b7d5aad0f0e6b68aab06f9d1 to your computer and use it in GitHub Desktop.
Save jnbdz/40ac0ca8b7d5aad0f0e6b68aab06f9d1 to your computer and use it in GitHub Desktop.
Source: https://github.com/puppeteer/puppeteer/issues/1837
nothing, but this works for me
https://scottspence.com/2021/01/05/use-chrome-in-ubuntu-wsl/
https://github.com/puppeteer/puppeteer/issues/1700#issuecomment-369807464
Hi! Here is how I got it running under WSL:
install chromium browser through apt-get
$ sudo apt-get install chromium-browser
then:
const browser = await puppeteer.launch({executablePath:'/usr/bin/chromium-browser'});
https://scottspence.com/posts/use-chrome-in-ubuntu-wsl
sudo apt update && sudo apt -y upgrade && sudo apt -y autoremove
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt -y install ./google-chrome-stable_current_amd64.deb
google-chrome --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment