File size: 1,935 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
<div style="width: 45%; float:left" align="left"><a href="./overview.md"><-- Overview</a> </div>
<div style="width: 5%; float:left" align="center"><a href="./../README.md">Top</a></div>
<div style="width: 45%; float:right"align="right"><a href="./test_environment.md">Test Environment --></a> </div>
<br><br>
# Setup
<!-- TOC -->
- [Setup](#setup)
- [Regular setup](#regular-setup)
- [Apple Silicon emulated x86_64](#apple-silicon-emulated-x86_64)
- [Apple Silicon arm64](#apple-silicon-arm64)
<!-- /TOC -->
## Regular setup
Follow the [Quick Start](../README.md) 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.
1. install i386 Homebrew:
```
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
```
2. install `nvm` using 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!**
3. using `nvm`, install the current version of NodeJS used in `wp-calypso`:
```
nvm install <node_version>
```
4. instruct `nvm` to use the version of NodeJS installed in previous step:
```
nvm use <node_version>
```
5. update `npm` version:
```
arch -x86_64 npm install -g npm@latest
```
6. install `yarn`:
```
arch -x86_64 npm install yarn
```
7. 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](../README.md#quick-start) should be enough to get the user up and running.
|