Skip to content

Instantly share code, notes, and snippets.

@z4id
Created May 24, 2022 05:57
Show Gist options
  • Save z4id/3d0c1eedb8ae726f57e5e67f57506eb4 to your computer and use it in GitHub Desktop.
Save z4id/3d0c1eedb8ae726f57e5e67f57506eb4 to your computer and use it in GitHub Desktop.
Macbook M1 - Workaround for Puppeteer Installation via NPM/NodeJS
https://linguinecode.com/post/how-to-fix-m1-mac-puppeteer-chromium-arm64-bug
> brew install chromium
Allow Chromium to open on your M1 Mac (or fix it from security settings)
Error while opening:
“Chromium.app” is damaged and can’t be opened. You should move it to the Bin.
Fix:
https://www.reddit.com/r/MacOS/comments/q9d772/homebrew_chromium_is_damaged_and_cant_be_openend/
> xattr -cr /Applications/Chromium.app
Open it again
add in ~/.zshrc
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
export PUPPETEER_EXECUTABLE_PATH='which chromium'
or
export PUPPETEER_EXECUTABLE_PATH='/opt/homebrew/bin/chromium'
Restart your terminal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment