Skip to content

yarn install

phaledang edited this page Dec 12, 2023 · 4 revisions

Windows

npm install --global yarn

Ubuntu

sudo npm install -g yarn

Ensure your Node.js version is up-to-date. Check the version with the command: node -v Corepack requires Node.js 16.10 or later. If the output shows an older version, update Node.js.

Start Corepack by typing: corepack enable Note: If Corepack does not exist on your system, install it by typing: sudo npm install -g corepack

Install the latest version of Yarn with the command below: corepack prepare yarn@stable --activate

Type the following command to test the installation and check the Yarn version: yarn --version To update the binary to the latest version, run: yarn set version stable

Clone this wiki locally