Skip to content

Installing Yarn

Aaron H edited this page Feb 25, 2019 · 1 revision

Since we now use webpacker, we also use yarn to maintain our JS assets.

Platforms

Installing yarn is different depending on your OS. Find your platform below and follow the directions.

Linux

  1. Add the repository
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
  1. Install yarn
sudo apt-get update && sudo apt-get install yarn

If you run into trouble, check the source page.

Mac

Easiest to install this via Homebrew

brew install yarn

If you run into trouble, check the source page

Cloud 9

You can't just follow the directions on the site, you have to do some mojo first.

  1. Run update.
sudo apt-get update
  1. Install apt-transport-https.
sudo apt-get install apt-transport-https
  1. Configure the repository (from Yarn installation).
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
  1. Run update again and install Yarn.
sudo apt-get update && sudo apt-get install yarn

You're good to go! (Thanks to Mike Rourke)

Clone this wiki locally