搭建React工程 全局安装 npm i -g create-react-app 新建react工程 create-react-app 项目名称 进入工程,准备启动工程 cd reactproject 运行工程 npm start