I was having some trouble getting yarn to globally install some commands, such as jest-cli
.
Fortunately zmorris on Github found a reasonably elegant solution:
yarn config set prefix /usr/local/
yarn global remove <package>
yarn global add <package>