Yarn
Install Yarn (classic 1.x line) using the official shell installer.
Source
- yarnpkg.com
- Install script:
https://yarnpkg.com/install.sh
Install
bash
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --rcThe --rc flag installs the release candidate channel; omit for latest stable:
bash
curl -o- -L https://yarnpkg.com/install.sh | bashVerify
bash
yarn --versionNote
For new Node projects, Corepack (corepack enable) ships Yarn 2+ with Node 16+. This page documents the classic installer preserved from the original stub.