Skip to main content

Migrate to Yarn 2

Getting Started

Installation

npm install -g yarn

Migration

.gitignore

  1. Inside a project directory:
yarn set version berry
  1. Create a yarnrc.yml file.

Configuration

nodeLinker: "node-modules"
  1. Run yarn install to migrate/create lockfile.

Upgrade

yarn set version latest