代码配置如下
# 安装 nvm brew install nvm # 安装 create-react-app npm install -g create-react-app # 初始化项目 npx create-react-app react-basic