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

puppeteer / macos #15

Open
thomasschindler opened this issue Nov 5, 2021 · 2 comments
Open

puppeteer / macos #15

thomasschindler opened this issue Nov 5, 2021 · 2 comments

Comments

@thomasschindler
Copy link

I'm running into an issue when installing on macos. Help is very much appreciated!

npm ERR! code 1
npm ERR! path /opt/homebrew/lib/node_modules/roam-research-private-api/node_modules/puppeteer
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! The chromium binary is not available for arm64:
npm ERR! If you are on Ubuntu, you can install with:
npm ERR!
npm ERR! apt-get install chromium-browser
npm ERR!
npm ERR! /opt/homebrew/lib/node_modules/roam-research-private-api/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:112
npm ERR! throw new Error();
npm ERR! ^
npm ERR!
npm ERR! Error
npm ERR! at /opt/homebrew/lib/node_modules/roam-research-private-api/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:112:19
npm ERR! at FSReqCallback.oncomplete (node:fs:198:21)
npm ERR!
npm ERR! Node.js v17.0.1

@thomasschindler
Copy link
Author

For others who might run into this: this is a specific problem on osx mit M1
https://linguinecode.com/post/how-to-fix-m1-mac-puppeteer-chromium-arm64-bug

@Quezion
Copy link

Quezion commented Jan 4, 2022

Workaround available for M1 Macs -- see my full comment, but excerpt is below puppeteer/puppeteer#5662

I ended up patching the os.arch() at the following path, homebrew/lib/node_modules/roam-research-private-api/node_modules/puppeteer/lib/cjs/puppeteer/node/Launcher.js

chromeExecutable = '/opt/homebrew/bin/chromium';

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