Skip to content

Instantly share code, notes, and snippets.

@N0xFF
Created September 6, 2023 08:14
Show Gist options
  • Save N0xFF/c1732e8541ba6d1c7b02d365b2f49b74 to your computer and use it in GitHub Desktop.
Save N0xFF/c1732e8541ba6d1c7b02d365b2f49b74 to your computer and use it in GitHub Desktop.
Install/Update Chrome for Testing and Chromedriver in Ubuntu
#!/usr/bin/env bash
# Use @puppeteer/browsers to system-wide install the latest stable release of Chrome and Chromedriver.
# By default to home directory.
cd ~
mkdir -p bin
output=($(npx @puppeteer/browsers install chrome@stable)) &&\
ln -sfv ${output[1]} ~/bin/chrome &&\
output=($(npx @puppeteer/browsers install chromedriver@stable)) &&\
ln -sfv ${output[1]} ~/bin/chromedriver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment