cypress-example-kitchensink icon indicating copy to clipboard operation
cypress-example-kitchensink copied to clipboard

Attempting to run on Mac M1 fails - The chromium binary is not available for arm64.

Open carylewis opened this issue 3 years ago • 1 comments

After cloning the repo and running:

npm install --save-dev cypress

I encounter this error:

npm ERR! code 1
npm ERR! path /Users/xxxxxxx/workspace/cypress-example-kitchensink/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!  sudo apt install chromium
npm ERR! 
npm ERR! 
npm ERR!  sudo apt install chromium-browser
npm ERR! 
npm ERR! /Users/xxxxxxxx/workspace/cypress-example-kitchensink/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:115

I manually install chromium, which worked but still can't get cypress to install in the project?

Other cypress examples such as https://github.com/cypress-io/cypress-example-recipes work fine.

Note: cypress-example-kitchensink fails when node 16.16.0 is used, but does work if node 14.20 is used.

carylewis avatar Aug 07 '22 15:08 carylewis

Not a fix, but if you're not using Netlify, you can also remove netlify-plugin-cypress (plus relevant Netlify and puppeteer related config if you wish) to make the install successful.

cattrn avatar Sep 02 '22 02:09 cattrn

@carylewis

This is an old issue, and I'm wondering what version of Cypress was being used at the time. Are you still having this problem?

Cypress 10.2.0 introduced native M1 support.

MikeMcC399 avatar Apr 21 '23 13:04 MikeMcC399

I can confirm that everything is working correctly.

node v. 16.18.1 cypress v. 12.10.0

on a mac mini m1

Thanks for following up.

carylewis avatar Apr 22 '23 14:04 carylewis