工具 create-react-app 安装 npm install -g create-react-app 当前使用版本 2.0.4(create-react-app -V) 创建demo create-react-app demo1 安装完成的目录 命令 运行 npm run start 默认端口为3000 测试 npm run test 打包 npm run build 需要对webpack配置 npm run eject