Skip to content

Installation

Yarn is intended to be used with Yarn Switch, a tool letting you use different Yarn versions depending on the project you’re working on.

Terminal window
curl -sS https://repo.yarnpkg.com/install | bash

Once Yarn Switch is ready, just initialize a new project:

Terminal window
yarn init

Any time you’ll want to update Yarn to the latest version, just run:

Terminal window
yarn set version latest

Yarn will then configure your project to use the most recent stable binary.