1. 下载12x版本

curl --silent --location https://rpm.nodesource.com/setup_12.x | bash -

2. yum 安装

## Run `sudo yum install -y nodejs` to install Node.js 13.x and npm.
yum install -y nodejs
## You may also need development tools to build native addons:
yum install gcc-c++ make
## To install the Yarn package manager, run:
curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
yum install yarn

3. cnpm安装

npm install -g cnpm --registry=https://registry.npm.taobao.org