Created
May 24, 2022 05:57
-
-
Save z4id/3d0c1eedb8ae726f57e5e67f57506eb4 to your computer and use it in GitHub Desktop.
Macbook M1 - Workaround for Puppeteer Installation via NPM/NodeJS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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