Setup
Regular setup
Follow the Quick Start guide to install required software.
Apple Silicon (emulated x86_64)
Note: Steps for Apple Silicon is constantly changing and may not be accurate. Since January 2021 when these steps were written Apple Silicon support has improved significantly across the board and these steps may no longer be necessary.
- install i386 Homebrew:
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
- install
nvmusing i386 Homebrew:
arch -x86_64 /usr/local/bin/brew install nvm
This is critical! If nvm is installed using ARM64 Homebrew, installed Node versions will also be the ARM64 variant and there will be problems!
- using
nvm, install the current version of NodeJS used inwp-calypso:
nvm install <node_version>
- instruct
nvmto use the version of NodeJS installed in previous step:
nvm use <node_version>
- update
npmversion:
arch -x86_64 npm install -g npm@latest
- install
yarn:
arch -x86_64 npm install yarn
- install all dependencies from repo root:
arch -x86_64 yarn install --immutable
At any point, run arch to verify whether shell is running with Rosetta 2 emulation.
Apple Silicon (arm64)
Steps in the Setup should be enough to get the user up and running.