reza
reza

Reputation: 27

how turn off browser sync in sublime text 3?

I'm using Sublime Text 3 and installed browsersync package for live reloading. When I quit from Sublime and close liveserver app in my browser and try to open new liveserver with react start command I get a message that say: "Something is already running on port 3000." Then I check localhost:3000 and the browser still sync to Sublime I don't know how to turn off liveserver in port 3000 ? enter image description here

please help me

Upvotes: 1

Views: 1529

Answers (3)

LouieMD3
LouieMD3

Reputation: 21

Try using Ctrl+C on your keyboard in your terminal or your command line (depending on whether your operating system is Unix based or Windows based). PowerShell should work too, if on a PC.

Upvotes: 0

Another way to kill the service is going to Start -> Resource Monitor -> Network Under "Listening Ports" check for your port number, in this case 3000. Take the process Id and then look for it under "Processes with Network Activity" Check the process and right click -> End Process.

This will end the process utilizing the port 3000.

Upvotes: 1

MattDMo
MattDMo

Reputation: 102902

I assume that this is the plugin you're using. Unfortunately, the plugin has been abandoned for 5 years, and the way it's written, there is no method for killing the node server once you're done with the plugin. From the Windows command line, this:

taskkill /im node-windows.exe /f /t

should do the trick, but you'll have to run it manually. Alternatively, you can use Task Manager to kill any node-windows.exe processes.

Upvotes: 1

Related Questions