.profile
, .bash_profile
, .bashrc
, .zshrc
, etc.export PATH='$PATH:/opt/yarn-[version]/bin'
(the path may vary depending on where you extracted Yarn to)PATH
environment variable in your terminal. To do this, add export PATH='$PATH:`yarn global bin`'
to your profile, or if you use Fish shell, simply run the command set -U fish_user_paths (yarn global bin) $fish_user_paths