需要安装 concurrently 模块  npm install concurrently

在packjson中运行

"scripts": {
    "start": "concurrently \"npm run serve\" \"npm run node\"",
    "serve": "vue-cli-service serve",
    "node": "node server/index",
    "build": "vue-cli-service build",
    "lint": "vue-cli-service lint",
    "test:unit": "vue-cli-service test:unit"
}

 亲测有效

相关文章:

  • 2021-06-18
  • 2022-12-23
  • 2021-06-25
  • 2021-12-13
  • 2021-09-16
猜你喜欢
  • 2022-01-12
  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
  • 2021-07-14
  • 2022-12-23
相关资源
相似解决方案