Fixing "The chromium binary is not available for arm64"
When installing Puppeteer on your new shiny M1/M2 powered Mac, you might come across this error message, when trying to install the Puppeteer NPM package: The chromium binary is not available for arm64: If you are on Ubuntu, you can install with: apt-get install chromium-browser Fear not, there is an easy fix! Just install Chromium manually with HomeBrew: brew install chromium --no-quarantine No quarantine?The no quarantine flags ensures you don’t get the “Chromium is damaged and can’t be openend”. After installing Chromium, just add these two lines to ~/.zshrc: export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true export PUPPETEER_EXECUTABLE_PATH=`which chromium` Don’t forget to run source ~/.zshrc afterwards. Your installation of puppeteer should now work.
Related posts
"We are fucked" and some other half-assed thoughts on AI and coding
I thought AI would take my job. Instead, it gave me a second brain and made me love programming all over again.
My 2024 programming stack
Last year, I chronicled my tech stack journey - from languages to frameworks to tools, diving deep into what made my developer life tick. Now, a year wiser (and maybe a bit more cynical about free tiers), it's time for my 2024 update.
0 Comments
No comments yet. Be the first to comment!