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.

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.

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

Example: Check if NVM is already installed

nvm --version

Example: Install NVM via cURL

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

Example: Install NVM via Homebrew (MacOS - Requires Homebrew)

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

Example: Install Yarn via Homebrew (MacOS - Requires Homebrew)

brew install yarn

Example: Install Yarn via cURL

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

3. Install Node via NVM

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.

nvm --version
node -v 
yarn -v

Last updated