question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong assumption of Chrome exec path on Apple Silicon M1

See original GitHub issue

I’ll make this as short as possible since it’s very straightforward (I bet you like it this way for this particular issue)

In Launcher.js:79

        let chromeExecutable = executablePath;
        if (os.arch() === 'arm64') {
            chromeExecutable = '/usr/bin/chromium-browser';
        }
        else if (!executablePath) {

The path provided to puppeteer is: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

I’m using ARM64 Node.js v15 compiled by this link: https://www.reddit.com/r/apple/comments/jyfg4m/nodejs_running_native_on_apple_silicon_m1_mac_mini/

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:18
  • Comments:8

github_iconTop GitHub Comments

10reactions
bjornlllcommented, Dec 21, 2020

Thanks for pointing us all in the right direction, @kenny-y!

        // node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.js L:73
        if (os.arch() === 'arm64' && false) {
            chromeExecutable = '/usr/bin/chromium-browser';
        }

👆 I patched it directly in my node_modules folder. Will do until an official fix comes out.

0reactions
stale[bot]commented, Jul 27, 2022

We are closing this issue. If the issue still persists in the latest version of Puppeteer, please reopen the issue and update the description. We will try our best to accomodate it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chrome not giving option for m1 version - Apple Community
I'm trying to load Google Chrome onto my macbook air with m1 chip and it isn't giving me the option to load the...
Read more >
How to set up an M1 MacBook for web development
In this tutorial, we set up web development tools for our MacBook in just 20 minutes, including Git, GitHub, VS Code, and Powerline...
Read more >
OSX fix Selenium Chromedriver launch error spawn ...
Root Cause: The ChromeDriver team added "_m1" to the end of the filename for their Apple Silicon ARM builds of Chromedriver -- but...
Read more >
Install Ubuntu Desktop 22.04 ARM64 on macOS Apple ...
So I have to assume that the installation fails/hangs. Is there any special setting that ... Be on a M1 Mac - I'm...
Read more >
Page 16 – #! is not a curse word
This summary isn't quite as big as last week's, but very close. This week many people got their hands on the first Macs...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found