1,先建立一个文件夹用于存放项目react
2,运行cmd,路径选择到你建立的文件夹内npm
3, npm install -g create-react-app create-react-app my-app cd my-app/ npm startapp