I was unable to install yarn directly - I had to do a few additional steps for it to actually work. Here they are.
I installed using homebrew for mac
once homebrew was installed here were the commands necessary to install
<li>xcode-select --install
<li>brew install yarn</li>
Test to see if yarn is installed
If you see a version number you are good to go.