安装 concurrently 包来多开。
之后配置packagejson
"scripts": {
"dev": "vite",
"server": "nodemon ./_server/app.js",
"start": "concurrently \"npm run server\" \"npm run dev\" ",
"test": "vite build --mode test",
"prod": "vite build --mode prod",
"serve": "vite preview"
},