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
Example: Install NVM via cURL
Example: Install NVM via Homebrew (MacOS - Requires Homebrew)
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)
Example: Install Yarn via cURL
3. Install Node via NVM
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.
Last updated