在package.json文件中找到 "scripts",在start中添加"set PORT=8000"
"scripts": { "start": "set PORT=8000 && node scripts/start.js", "build": "node scripts/build.js", "test": "node scripts/test.js" },