J
J
JSkye2017-07-24 18:38:53
Windows
JSkye, 2017-07-24 18:38:53

How to release port 3000 occupied by create-react-app?

Windows 10 system, Create-react-app 1.3.3
Possibly a dumb question. But still. When executing npm start create-react-app starts the local server on port 3000, however, even when the console is closed, the port remains busy, which prevents another React application from running on it. Of course, rebooting helps, however, I would like to release it in a more "civilized" way.
UPD: Checked. No, Ctrl+C doesn't exactly help. The solution of explicitly setting a different port to some extent helps to cope with the problem, but still I would like to know how to close the running application. At least by stopping the process.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
J
JSkye, 2017-07-24
@JSkye

I figured it out myself. It is enough to kill the corresponding Node.js process in the task manager. I haven't found any more elegant way yet.

L
Larisa Moroz, 2017-07-24
@larisamoroz

You can edit package.json , scripts section and explicitly specify a different port there:
"start": "set PORT=3005 && react-scripts start"

A
Anonymous ________________, 2018-01-10
@Onesuch07

If you have Conemy, then there is a hotkey that ends the ports used, processes:
Win + Alt + Break
The console is not necessary to close, you can safely run "npm start", "gulp", "yarn", etc.
If it doesn't work, then look for button along this path:
Active console>close or kill>kill active process
Good luck!

K
Kirill Kublyakov, 2017-07-24
@Kublyakov

First Ctrl + C in the console, then just close the console)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question