npm install -g create-react-app
create-react-app my-app
cd my-app/
启动项目:npm start
安装依赖:npm install
编译:npm run build
npm install -g create-react-app
create-react-app my-app
cd my-app/
启动项目:npm start
安装依赖:npm install
编译:npm run build
转载于:https://www.cnblogs.com/furenjian/p/10302046.html