Last active
April 15, 2021 03:50
-
-
Save adcreare/c910d3793514b61a4fc5abe9c789f2f4 to your computer and use it in GitHub Desktop.
puppeteer arm64 fix apple m1
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
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