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

Launching browser fails on Apple Silicon #181

Closed
slaffcheff opened this issue Apr 9, 2021 · 1 comment
Closed

Launching browser fails on Apple Silicon #181

slaffcheff opened this issue Apr 9, 2021 · 1 comment

Comments

@slaffcheff
Copy link

Steps to reproduce

OS: macOS Big Sur 11.2.2
Node: v15.12.0
puppeteer@8.0.0

Install the package and it fails with chromium error. You need to install chromium via brew manually and point at zshrc:

export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
export PUPPETEER_EXECUTABLE_PATH=`which chromium`

When I try to run:
aws-azure-login --mode=gui

Logging in with profile 'default'...
Using AWS SAML endpoint https://signin.aws.amazon.com/saml
Error: Failed to launch the browser process! spawn /usr/bin/chromium-browser ENOENT


TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

    at onClose (/opt/homebrew/lib/node_modules/aws-azure-login/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:193:20)
    at ChildProcess.<anonymous> (/opt/homebrew/lib/node_modules/aws-azure-login/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:185:85)
    at ChildProcess.emit (node:events:369:20)
    at ChildProcess.emit (node:domain:470:12)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12)
    at onErrorNT (node:internal/child_process:480:16)
    at processTicksAndRejections (node:internal/process/task_queues:81:21)

There are some suggestions here: puppeteer/puppeteer#6622
Please, fix this asap since it's a huge blocker for the people with M1.

@kennethaasan
Copy link
Collaborator

Hi, this seems like a duplicate of #166

Please continue the discussion there. It would be great with a PR that solves this because I don't have a computer with Apple Silicon.

Thanks,
Kenneth

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

2 participants