Home > Software design >  package.json configuration to run server and Client
package.json configuration to run server and Client

Time:10-07

This is my configuration for the global package.json

"server": "npm run watch --prefix server",
    "client": "npm run start --prefix client",
    "deploy": "npm run server & npm run client",

when i run directly in the terminal : npm run server & npm run client it it runs correctly but if I write: npm run deploy it runs only the server.I don't know why. please if u know guys tell me.

CodePudding user response:

I think the problem solve by using this command

npm server & npm client

CodePudding user response:

USE Start keyword

{ "server": "npm run watch --prefix server",

"client": "npm run start --prefix client",

"deploy": "start npm run server & start npm run client",
}
then run command
npm run deploy
  • Related