-
-
Notifications
You must be signed in to change notification settings - Fork 488
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.
Installing yarn
is different depending on your OS. Find your platform below and follow the directions.
- 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
- Install
yarn
sudo apt-get update && sudo apt-get install yarn
If you run into trouble, check the source page.
Easiest to install this via Homebrew
brew install yarn
If you run into trouble, check the source page
You can't just follow the directions on the site, you have to do some mojo first.
- Run update.
sudo apt-get update
- Install apt-transport-https.
sudo apt-get install apt-transport-https
- 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
- Run update again and install Yarn.
sudo apt-get update && sudo apt-get install yarn
You're good to go! (Thanks to Mike Rourke)