While trying to do the MERN tutorial(Travers Media), i've also been asking a few questions to my friends who do code. And it irritates my friend that i don't separate client folder and server folder. but since my plan is to run both backend and frontend at the same time with concurrently, it hasn't actually been working.
"scripts": {
"start": "node server.js",
"server": "nodemon server.js",
"client": "npm start --suffix --prefix client",
"dev": "concurrently \"npm run server\" && \"npm run client\""
},
concurrentlydoesn't seem to use&&and no idea what--suffix --prefix clientis supposed to do. Did you mean to start the server twice?In any case getting rid of the
&&and adding an extra--to the"client"script works for mepackage.jsonserver.js