-1

So I am building a react app using npm, the problem is whenever I start the live-server to update the website automatically for any changes I make in the code, the terminal just freezes and it does not let me type anything. I am opening the terminal on windows 10 on the editor sublime text itself.

jsLearner
  • 159
  • 3
  • 11

2 Answers2

1

If you want to stop running the server (meaning your app will no longer be available on localhost), you should be able to use ctrl+ c to stop any running processes in the current terminal tab.


When you’re running a server/process in terminal, you’ll need to open a separate tab/window to do anything else.

You should look at the documentation for the terminal package you’re using in Sublime to find out how to open a new tab, or just use the built-in terminal which definitely supports multiple tabs/windows.

JBallin
  • 8,481
  • 4
  • 46
  • 51
0

I'm not sure but are u using live-server package? If you are u can specify wait parameter before starting server something like this

var liveServer=require("live-server");
var params={          
 wait= 1000   //thats in ms milliseconds
};
liveServer.start(params);

Taken from official documentation. If u wana kill it then u have to do it manually like JBallin said

Shivam
  • 3,514
  • 2
  • 13
  • 27