My Vue app runs on port 8080. The setting of scripts: "serve": "vue-cli-service serve"
and I start it up with yarn run serve
.
My express server is set to run on port 4000. I start it up with yarn run dev
with this scripts:
"client-install": "yarn add --prefix client",
"start": "node server.js",
"server": "nodemon server.js",
"client": "yarn start --prefix client",
"dev": "concurrently \"yarn run server\" \"yarn run client\""
while I try to run, it displays an error:
this problem's solve by using npm package called concurrently