# remove yarn 0/32+git
which yarn # find yarn path then remove it
rm -rf /usr/local/bin/yarn # may be here or
rm -rf /usr/local/bin/yarnpkg # may be here, wherever it'll be just remove it
yarn --version # check then install updated version from
brew install yarn # macOS
sudo npm install -g yarn # linux
yarn --version