cloudtian / blogs

Summary of knowledge and blogs for every little things
3 stars 0 forks source link

修改create-react-app默认端口3000 #23

Open cloudtian opened 5 years ago

cloudtian commented 5 years ago

方案1

修改package.json文件

"scripts": {
    "start": "set PORT=8090 && node scripts/start.js",
   //...
}

方案2

直接修改代码中的默认端口号,比较粗暴 image