其他分享
首页 > 其他分享> > 修改react项目的默认端口

修改react项目的默认端口

作者:互联网

"scripts": {
    "start": "** ⭐set PORT=9000 &&⭐**react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },

在package.json 里面添加想要修改的端口

标签:eject,端口,默认,react,start,build,scripts,test
来源: https://blog.csdn.net/xiaocuizao/article/details/99764374