nvm 安装

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.1/install.sh | bash

nvm install 8.9.0

nvm use 8.9.0

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

原文地址:https://www.cnblogs.com/mhc-fly/p/9379588.html