[wp-trac] [WordPress Trac] #52356: npm install does not work on wordpress-trunk on new Mac M1's
WordPress Trac
noreply at wordpress.org
Tue Mar 2 00:48:09 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: trunk
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by afragen):
@justinahinon node v15.x compiles and installs under arm64 (Apple
Silicon). Here's what I did.
`nvm` is installed via plugin `zsh-nvm` for oh-my-zsh!
1. Open a terminal session.
2. Run `nvm install 15` and allow it time to compile/build.
3. Run `nvm use 15`
4. Run `nvm alias default 15`, so every shell session uses this version of
node by default
After the above, you can open a new terminal session where `wordpress-
develop` is installed.
1. `export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true `, this avoids a current
error. [https://github.com/ungoogled-software/ungoogled-chromium-
macos/issues/69]
2. `npm install`, you can also start over by `rm -rf node_modules && npm
install`
3. `npm run build`
If you're looking to run the `npm run env:xxxx` instructions you will need
to install version of Docker for Apple Silicon, [https://docs.docker.com
/docker-for-mac/apple-m1/]. Note that this Docker app does not
automatically update you must update yourself.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52356#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list