2

In windows, I run 2 commands like this

node watcher.js && node server.js

The first runs a watcher script, and the second runs a server. The problem is both are persistent and don't actually end. So the running server part never happens because the watcher script still runs.

Is there a way I can say to run both but don't care about finishing a script?

Thanks

1 Answer 1

1

try

start node watcher.js && start node server.js

this will start two cmd programs independently.

Sign up to request clarification or add additional context in comments.

1 Comment

This launches 2 separate terminal windows. Is there a way to keep them within VScode?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.