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

Created on 25 Nov 2017  路  7Comments  路  Source: vercel/serve

I鈥榤 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"

Most helpful comment

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

All 7 comments

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?

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.

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

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...

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

so, how to stop the app from the terminal?

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Mugen87 picture Mugen87  路  3Comments

arel picture arel  路  4Comments

gaearon picture gaearon  路  4Comments

nikitamendelbaum picture nikitamendelbaum  路  6Comments

Kikobeats picture Kikobeats  路  3Comments