在package.json中把”start“修改成”set PORT=9000 && react-scripts start
“
代码示例如下:
"scripts": { "start": "set PORT=9000 && react-scripts start", "build": "react-scripts build", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject" }
在package.json中把”start“修改成”set PORT=9000 && react-scripts start
“
代码示例如下:
"scripts": { "start": "set PORT=9000 && react-scripts start", "build": "react-scripts build", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject" }