2

For example, I want to run two commands by npm scripts, the first command starts a node server. I find that the first command executed success but the first command stops the second command to execute.How can I do to execute these two commands successfully?

package.json

"scripts": {
    "dev": "nodemon ./bin/www & gulp dev"
  }

nodemon ./bin/www starts a node server and the gulp dev does not execute.

enter image description here

0

1 Answer 1

1

Just use & to say run this command & this command

"scripts": {
  "start": "commandA --arguments whatever & commandB params --arguments"
}
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.