serve icon indicating copy to clipboard operation
serve copied to clipboard

Can't stop serve with ctrl+c in windows10 cmd

Open TamasHuang opened this issue 9 years ago • 7 comments

I‘m a new guy to learn react.js. when i build a app, then serve -s build, then i use Ctrl+C,but it can't stop the serve. also can visit my app use "http://localhost:5000"

TamasHuang avatar Nov 25 '17 13:11 TamasHuang

I just tried this with Powershell and Windows Command Prompt and Ctrl+C works as expected in my machine: imagen

After doing this, I can't access the app anymore at "http://localhost:5000"

Can you give more details about this issue?

Gua-naiko-che avatar Nov 27 '17 19:11 Gua-naiko-che

I have the same problem, also if you choose to teminate the batch still run and if I restart my machine it startup again, so "http://localhost:5000" is always accesible form the first serve command on and no way to stop it.

EDIT:

http://192.168.1.110:5000 (my localhost:5000) is not accesible after ctrl-c and after a restart, but localhost:5000 it is.

marcoc1712 avatar Dec 08 '17 13:12 marcoc1712

I'm having the same issue on Mac as well. From create-react-app, I did yarn build then serve -s build, but then even if I ctrl+c or restart the machine, http://localhost:5000/ is still accessible with the app running

bodadotsh avatar Dec 15 '17 13:12 bodadotsh

After some trials I think node.js (or don't know what) is serving on localhost:5000 even without run serve command (and also with serve not installed).

Very unclear...

marcoc1712 avatar Dec 15 '17 14:12 marcoc1712

found the reason: it's because the service workers are running in the background.

Once I unregistered the service workers from the Dev Tools(Application -> Service Workers), the ports are back to normal

bodadotsh avatar Dec 15 '17 15:12 bodadotsh

so, how to stop the app from the terminal?

blinkcat avatar Jan 05 '18 09:01 blinkcat

This should now be working with the latest version!

Thank you for the effort you've put into this!

Please also read the details about the new release.

leo avatar May 28 '18 17:05 leo