Skip to content

How to: install Yarn

Jeremy edited this page May 19, 2021 · 2 revisions

Fast, reliable, and secure dependency management for NodeJS projects. Yarn caches every package it has downloaded, so it never needs to download the same package again. It also does almost everything concurrently to maximize resource utilization. This means even faster installs. Using a detailed but concise lockfile format and a deterministic algorithm for install operations, Yarn is able to guarantee that any installation that works on one system will work exactly the same on another system. Yarn uses checksums to verify the integrity of every installed package before its code is executed.

Prerequisites:

  1. macOS: This is the only platform this project supports
  2. NodeJS: NodeJS Runtime
  3. Homebrew: A macOS package manager

Steps:

  1. Open and run the following command in terminal:
    brew install yarn
    
  2. Run yarn --version to verify install.
    • Should print version and revision info to terminal (eg. 1.22.10)
Clone this wiki locally