0

I'm using lite-server ('https://www.npmjs.com/package/lite-server'). After hitting npm start it hosts on localhost:/3000 . If I close CMD where I typed in NPM start it turns off the server.

Is there a way to turn it off through cmd? Some short-cut or a key?

Faris Kapo
  • 346
  • 9
  • 30

1 Answers1

2

Use the key combination CTRL + C. Then type Y and Enter.

That will terminate any process running in the shell. It’s a convention that works for most shells, not just for CMD.

genechk
  • 369
  • 1
  • 4