sudo npm i yarn -g export PATH="$PATH:`yarn global bin`" 重启终端 yarn global add create-react-app create-react-app