Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple Silicon support #39

Closed
dqbd opened this issue Feb 10, 2021 · 4 comments 路 Fixed by #132
Closed

Apple Silicon support #39

dqbd opened this issue Feb 10, 2021 · 4 comments 路 Fixed by #132
Assignees
Projects

Comments

@dqbd
Copy link

dqbd commented Feb 10, 2021

Hey! 馃憢 Having issues running yarn create video on M1 powered device w/out Rosetta 2.

image

Node v15.6.0 (native ARM), npm 7.4.0, yarn 1.x

It seems like the issue is related to puppeteer/puppeteer#6622, as Puppeteer does not find the proper installed binary during npm (re)build nor during launching browser

@dqbd
Copy link
Author

dqbd commented Feb 10, 2021

It seems like the issue is not yet resolved as of puppeteer@^7.0.4, cannot install and launch Chromium without specifying executablePath in packages/renderer

@dqbd dqbd changed the title Issue running on Apple Silicon Apple Silicon support Feb 10, 2021
@JonnyBurger
Copy link
Member

Thanks for reporting! In that case, we must provide the option to specify an executable yourself. I just noticed that there is an puppeteer-core package which doesn't install the browser on installation. Would also be good because Puppeteer is not required for the preview, so the installation will be much faster.

Plus so many people already have Chrome installed!
Will tackle this soon.

@JonnyBurger JonnyBurger added this to To do in Roadmap Feb 11, 2021
@jcblw
Copy link

jcblw commented Feb 15, 2021

I got this project working on Mac M1. You just need to disable the auto-download of Chromium and install it manually.

I have this in my ~/.zshrc since I run a few projects that use puppeteer.

export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
# Path for chromium needed for puppeteer
export PUPPETEER_EXECUTABLE_PATH="/Users/<username>/<path-may-vary>/Chromium.app/Contents/MacOS/Chromium"

Got this info from puppeteers issues. More info here.
puppeteer/puppeteer#6622 (comment)

@JonnyBurger JonnyBurger moved this from Planned to In progress in Roadmap Feb 25, 2021
@JonnyBurger JonnyBurger moved this from In progress to Done in Roadmap Mar 2, 2021
@c0bra
Copy link

c0bra commented Jul 6, 2023

Note for others that I was getting an error like this: "Chromium.app is damaged. You should move it to Trash."

And had to reinstall chromium unquarantined: brew reinstall chromium --no-quarantine

Not sure if that's the ideal solution, but it worked. I have the same zshrc env vars as specified above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

5 participants