1.全局安装create-react-app npm i -g create-react-app 2.创建项目 create-react-app my-app 3.进入项目,启动服务 cd my-app npm start