This example explains the different methods to install Yarn for your OS.
brew update
brew install yarn
sudo port install yarn
Add the following to your preferred shell profile (.profile
, .bashrc
, .zshrc
etc)
export PATH="$PATH:`yarn global bin`"
First, install Node.js if it is not already installed.
Download the Yarn installer as an .msi
from the Yarn website.
choco install yarn
Ensure Node.js is installed for your distro, or run the following
curl -sL <https://deb.nodesource.com/setup_6.x> | sudo -E bash -
sudo apt-get install -y nodejs
Configure the YarnPkg repository