A
A
Arthur2019-05-29 16:50:17
bash
Arthur, 2019-05-29 16:50:17

Is port 3000 busy?

Good evening programmers)
I have a question for you. After starting the project on React.js with the npm start command in Git Bash, everything works as expected, but after that Bash does not work for other commands, it only compiles and displays the result of saving the code. If I close Bash and run npm start again, it says that port 3000 is already taken. If you remove the task through the task manager, then everything is ok. But this is not an option. Also, is it okay to use Git Bash for my needs?
Thanks for answers.
Z.Y. I hope it's clear.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hzzzzl, 2019-05-29
@TurnerIT

open another git bash, the first one will hang until the node finishes the process (listen to the port), if you just close the git bash shell, the node will continue to work, that's why the port is busy
Exit the process with ctrl+C

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question