Skip to content

Instantly share code, notes, and snippets.

@adcreare
Last active April 15, 2021 03:50
Show Gist options
  • Save adcreare/c910d3793514b61a4fc5abe9c789f2f4 to your computer and use it in GitHub Desktop.
Save adcreare/c910d3793514b61a4fc5abe9c789f2f4 to your computer and use it in GitHub Desktop.
puppeteer arm64 fix apple m1
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 && npm i # ensure it doesnt try and download a binary
# Modify node_modules/puppeteer/lib/esm/puppeteer/node/Launcher.js
# Specifically remove
// if (os.arch() === 'arm64') {
// chromeExecutable = '/usr/bin/chromium-browser';
// }
and convert following else if to if.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment