Category: Nodejs
Yarn can be installed using npm or a package manager for the platform you are developing on.
A cross-platform way of installing yarn globally is using npm:
npm install --global yarn
To install on macOS using brew:
brew install yarn
To install on Windows using Chocolatey:
choco install yarn
Confirm that Yarn is installed as follows:
yarn --version