1.先安装Node.js 2.node -v 和npm -v查看是否安装完成 3.npm install -g create-react-app 4.create-react-app xxx(名称) 5.npm start(运行项目)