[wp-trac] [WordPress Trac] #52690: `npm install` aborts on Apple Silicon due to Puppeteer not finding appropriate chromium binary

WordPress Trac noreply at wordpress.org
Mon Mar 1 21:51:17 UTC 2021


#52690: `npm install` aborts on Apple Silicon due to Puppeteer not finding
appropriate chromium binary
------------------------------+-----------------------------
 Reporter:  afragen           |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 On Apple Silicon, I get an error running `npm install` from `wordpress-
 develop` due to a puppeteer script.

 {{{
 $ npm install

 > puppeteer at 4.0.1 install
 /Users/afragen/Local_Beta_Sites/wordpressdevelop/app/public/node_modules
 /grunt-contrib-qunit/node_modules/puppeteer
 > node install.js

 The chromium binary is not available for arm64:
 If you are on Ubuntu, you can install with:

  apt-get install chromium-browser

 /Users/afragen/Local_Beta_Sites/wordpressdevelop/app/public/node_modules
 /grunt-contrib-qunit/node_modules/puppeteer/lib/BrowserFetcher.js:112
             throw new Error();
             ^

 Error
     at
 /Users/afragen/Local_Beta_Sites/wordpressdevelop/app/public/node_modules
 /grunt-contrib-qunit/node_modules/puppeteer/lib/BrowserFetcher.js:112:19
 }}}

 I am running the shell session in Rosetta (x86_64) emulation. This has
 previously worked and not certain if it's related to r50441.

 Setting `export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true` in the session does
 allow for the `npm install` to complete.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52690>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list