安装与使用 通过 npm、yarn、npx 都可以 安装 npm npm i -g create-react-app yarn yarn global add create-react-app 使用 安装完成以后,即可使用 create-react-app 命令 create-react-app <项目名称> 或者通过 npx 的方式 npx npx create-react-app <项目名称>