In my localhost, running below command
PORT=4080 node server.js
But, it was throwing an unexpected error.
\'PORT\' is no
You can try this way also
"scripts": {
"build": "concurrently \"cd client && npm build\" \"cd server && npm build\"",
"install": "(cd client && npm) && (cd server && npm)",
"start": "concurrently \"cd client && SET PORT=3000 && npm start\" \"cd server && SET PORT=3001 && npm start\"",
"start:prod": "cd server && npm start:prod"
}