安装nvm

$ curl -o- <https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh> | bash

將 下面代码新增至你的 profile ( ~/.bash_profile~/.zshrc~/.profile 或 ~/.bashrc ):

export NVM_DIR="$HOME/.nvm"[ -s "$NVM_DIR/nvm.sh" ] && \\. "$NVM_DIR/nvm.sh"  *# This loads nvm*[ -s "$NVM_DIR/bash_completion" ] && \\. "$NVM_DIR/bash_completion"  *# This loads nvm bash_completion*

nvm ls-remote
nvm install v12.13.0
nvm install v12.13.0

安装yarn

npm install yarn -g
yarn config set registry <https://registry.npm.taobao.org/>

https://whimsical.com/WjkojzaQYCZHtuQSSDEeBE