-
修改默认端口号
找到package.json文件中修改
"scripts": {
"start": "set PORT=9000 && react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
中的"start"配置信息为
"start":"set PORT=9000 && react-scripts start",
PORT后面接的是端口号