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

Problem with puppeteer version on Apple M1 chip #184

Closed
ugljanin opened this issue Dec 30, 2021 · 3 comments
Closed

Problem with puppeteer version on Apple M1 chip #184

ugljanin opened this issue Dec 30, 2021 · 3 comments

Comments

@ugljanin
Copy link

When I try to install your package version 5.1.1.

/Volumes/Podaci/xwp/puppetier  npm i grunt-contrib-qunit
npm ERR! code 1
npm ERR! path /Volumes/Podaci/xwp/puppetier/node_modules/grunt-contrib-qunit/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

When I downloaded it from git and changed puppeteer version to above 10, it worked.
I have a problem because some (https://github.com/WordPress/wordpress-develop) package is using grunt-contrib-qunit in dependencies and it prevents me from installing it. Please update the version as I mentioned so I could work with it.

@talldan
Copy link

talldan commented Feb 1, 2022

I've also encountered this.

I think the issue is that the puppeteer dependency in this project is a fairly old version. That also means it's using an old version of Chromium, as puppeteer explicitly bumps the Chromium version on a regular basis (e.g. puppeteer/puppeteer#7907).

My guess is this old version of Chromium doesn't have an ARM build, while newer versions do (I can verify that I haven't had the problem with newer versions of puppeteer).

So I think the solution would be to update this project to a much more recent version of Puppeteer.

Krinkle added a commit to Krinkle/grunt-contrib-qunit that referenced this issue Mar 12, 2022
This is the latest version that supports Node.js 10. It comes with
a significantly newer Chromium version and many other internal changes,
including a fix for Apple M1 devices.

https://github.com/puppeteer/puppeteer/releases/tag/v6.0.0
* roll Chromium to 89.0.

https://github.com/puppeteer/puppeteer/releases/tag/v7.0.0
* roll Chromium to 90.0.
* `page.screenshot()` cuts by ViewPort size, not position.

https://github.com/puppeteer/puppeteer/releases/tag/v8.0.0
* renamed type ChromeArgOptions to BrowserLaunchArgumentOptions.
* renamed type BrowserOptions to BrowserConnectOptions.

https://github.com/puppeteer/puppeteer/releases/tag/v9.0.0
* roll Chromium to 91.0.
* filechooser: `FileChooser.cancel()` is now synchronous.
* fix install error on Apple M1 devices.

Fixes gruntjs#184.
Closes gruntjs#185.
@gziolo
Copy link

gziolo commented Mar 31, 2022

When can we expect this change to be published to npm? It looks like 6.0.0 release is already prepared: https://github.com/gruntjs/grunt-contrib-qunit/commit/3d09d410a707058a8972d92d6a4325721ecd17f6/.

@Krinkle
Copy link
Contributor

Krinkle commented Mar 31, 2022

Ref #186.

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