set local npm

npm config set prefix "${HOME}/.npm-global"

install yarn

sudo wget https://dl.yarnpkg.com/rpm/yarn.repo -O /etc/yum.repos.d/yarn.repo
sudo dnf install -y yarn