在create-react-app中,指定项目运行端口 在package.json文件中 "scripts": { "start": "set PORT=5000 && react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject" },