# Install Requirements

In order to start using Yarn you will need to install Node.js, which can be installed with Node Version Manager. Referring to the GitHub page for Node Version Manager is the best way to ensure you have an up-to-date version of Node.js installed.

{% hint style="info" %}
The following instructions are meant to be run from your host machine, not from within the docker container. This applies to all steps in this setup guide.
{% endhint %}

### 1. Install NVM on your host machine

NVM (Node Version Manager) is a tool that allows you to download and install Node.js. Visit this link for install instructions: [Node Version Manager Installation - GitHub](https://github.com/nvm-sh/nvm#install--update-script)

**Example: Check if NVM is already installed**

```
nvm --version
```

**Example: Install NVM via cURL**

```bash
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.26.1/install.sh | bash
```

**Example: Install NVM via Homebrew (MacOS - Requires** [**Homebrew**](https://docs.brew.sh/Installation)**)**

```bash
brew install nvm
```

### 2. Install Yarn

Yarn is a package manager that can be installed following the instructions on their website: [Official Yarn Documentation: Installation](https://yarnpkg.com/en/docs/install#mac-stable)

**Example: Install Yarn via Homebrew (MacOS - Requires** [**Homebrew**](https://docs.brew.sh/Installation)**)**

```bash
brew install yarn
```

Example: Install Yarn via cURL

```bash
curl -o- -L https://yarnpkg.com/install.sh | bash
```

### 3. Install Node via NVM

```bash
nvm install 14.16
nvm use 14.16
```

### 4. Confirm successful Install of Requirements

If all steps above have been done correctly, you should be able to run these commands. Each of these commands should display the version installed.

```bash
nvm --version
node -v 
yarn -v
```
