I need to run 2 commands at the same time:
1)npm start
2)nodemon server.js
the first in
/user/MatildeSalamanca_Project/web-app
and second in
/user/MatildeSalamanca_Project/web-app/src/server
It has to be something like this but with their respective directories
"run": "react-scripts start node server.js"
CodePudding user response:
Try using this instead
"run": "cd /user/MatildeSalamanca_Project/web-app && npm start && cd /user/MatildeSalamanca_Project/web-app/src/server && nodemon server.js"