[wp-trac] [WordPress Trac] #52356: npm install does not work on wordpress-trunk on new Mac M1's

WordPress Trac noreply at wordpress.org
Fri Dec 3 11:39:59 UTC 2021


#52356: npm install does not work on wordpress-trunk on new Mac M1's
-------------------------------+------------------------------
 Reporter:  justinahinon       |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Build/Test Tools   |     Version:  5.7
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by antonvlasenko):

 Solution that worked for me when I got my M1 Mac a couple of months ago:
 1. `brew install chromium`
 2. Go to `~/.zshrc` file and add the following lines:
 {{{#!bash
 export PUPPETEER_EXECUTABLE_PATH=`which chromium`
 export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
 export PATH="/opt/homebrew/opt/node at 14/bin:$PATH"
 }}}
 The last line is optional (the path to the node folder must match the
 actual node version installed on your Mac).
 3. Log out and log in again.
 4. Try to install and/or build Gutenberg again.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52356#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list