安装node 12
- curl -sL https://rpm.nodesource.com/setup_12.x | bash -
- yum install nodejs
- curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
- yum install yarn
- npm config set registry https://registry.npm.taobao.org
- npm config get registry
- npm config set registry https://registry.npmjs.org