"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"backend" : "nodemon backend/server.js",
"frontend" : "npm start -p frontend",
"dev": "concurrently \"npm run backend \"\"npm run frontend \""
}
I want to run frontend and backend file in one terminal command. But is do not work properly. Backend is run fine but frontend not runing.
> blog-project@1.0.0 dev
> concurrently "npm run backend ""npm run frontend "
[0]
[0] > blog-project@1.0.0 backend
[0] > nodemon backend/server.js npm run frontend
[0]
[0] [nodemon] 2.0.20
[0] [nodemon] to restart at any time, enter `rs`
[0] [nodemon] watching path(s): *.*
[0] [nodemon] watching extensions: js,mjs,json
[0] [nodemon] starting `node backend/server.js "npm run frontend"`
[0] server in runnig, port $(PORT)```