react项目启动修改默认端口号

package.json

{
 "scripts": {
    "start": "set PORT=4400 && react-scripts start",   // 注意修改端口号要写在前面
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  }
}

 

posted @ 2022-12-08 10:58  抽风的皮鞭  阅读(410)  评论(0编辑  收藏  举报