1

"concurrently" not working for parent directory client reactjs server.

concurrently commands are:

"scripts": {
    "client": "cd ../ --prefix client && npm run start",
    "server": "nodemon index.js",
    "dev" : "concurrently \"npm run client\" \"npm run server\" "
  }

Directory structure is

client server

Progman
  • 16,827
  • 6
  • 33
  • 48
Pradeep
  • 159
  • 2
  • 2
  • 7

1 Answers1

0

With Your folder structure Try this settings:

"scripts": {
    "start": "node server/index.js",
    "server": "nodemon server/index.js",
    "client": "npm start --prefix client",
    "dev": "concurrently \"npm run server\" \"npm run client\"",
  },

And hit npm run dev It should work fine ;-) Remember to install concurrently correct.

MarioG8
  • 5,122
  • 4
  • 13
  • 29