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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command failed in puppeteer - The chromium binary is not available for arm64 #1772

Closed
beccajellinek opened this issue Oct 14, 2022 · 4 comments

Comments

@beccajellinek
Copy link

I'm following the installation instructions so I can track user actions locally. I'm using an M1 Mac. During yarn process I receive the following error:

error /Users/rebecca.jellinek/dev/browser-sdk/node_modules/puppeteer: Command failed.
Exit code: 1
Command: node install.js
Arguments:
Directory: /Users/rebecca.jellinek/dev/browser-sdk/node_modules/puppeteer
Output:
The chromium binary is not available for arm64.

I've tried installing chromium directly via homebrew but that leads me to another error:

Error: Cask 'chromium' does not have a sha256 checksum defined and was not installed.
This means you have the --require-sha option set, perhaps in your HOMEBREW_CASK_OPTS.

From what I've read online, this could be mitigated by changing the dockerfile. I'm hesitant to make changes but could raise a PR if we find something that works.

@BenoitZugmeyer
Copy link
Member

I think we should update our puppeteer dependency to support M1 macs (cf this comment from puppeteer contributor)

In the meantime using chromium from brew is the workaround (cf this blog post). I have no idea why brew is failing to install chromium in your case. Editing the Dockerfile won't probably fix it, as it has nothing to do with local development or puppeteer.

@bcaudan
Copy link
Collaborator

bcaudan commented Oct 17, 2022

I had the same issue with chromium from brew but manage to bypass the install error by only putting this variable in my env:

export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true

@write2aj
Copy link

write2aj commented Nov 8, 2022

You could try installing chromium using brew.
For my Mac M1 with macOS 12.6 it got installed using the below command.
brew install chromium --no-quarantine and installed it at - /opt/homebrew/bin/chromium. It has the Chromium app in Applications folder as well.

Note - without the --no-quarantine MacOS's Gatekeeper prevents the command from completing the install correctly.

Hope this helps.

@bcaudan
Copy link
Collaborator

bcaudan commented Dec 26, 2022

Should be fixed by #1843, feel free to re-open otherwise.

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

No branches or pull requests

4 participants