how to end ng serve or firebase serve

后端 未结 13 1953
渐次进展
渐次进展 2021-01-29 23:05

I\'ve been doing web development with Angular2 and have been using both Angular2 and Firebase to run local servers. I haven\'t been able to find a command similar to typing quit

相关标签:
13条回答
  • 2021-01-29 23:57

    ctrl + c OR ctrl + Pause/Break

    Both will ask for Terminate batch job, then press Y or y and click enter.

    0 讨论(0)
  • 2021-01-29 23:59

    With Windows 10 / Powershell ctrl + c did not work; Powershell tried to gracefully stop the app.

    Used normal cmd and had no issues stopping the ng serve with ctrl + c.

    0 讨论(0)
  • 2021-01-30 00:00

    On macOS Mojave 10.14.4, you can also try Command ⌘ + Q in a terminal.

    0 讨论(0)
  • 2021-01-30 00:03

    it is enough to modify something in your text editor and reload localhost. all your connection will be lost nd you have opsibility to ng serve the new project in the console.

    0 讨论(0)
  • 2021-01-30 00:03

    I was trying to run this from within the Visual Studio 2017 Package Manager Console. None of the above suggestions worked.

    See this link where Microsoft states "The solution is not to use package manager for angular development, but instead use powershell command line. ".

    0 讨论(0)
  • 2021-01-30 00:05

    If ctrl + c doesn't work use this:

    ctrl +shift+ c

    Sometimes people change the behaviour of ctrl + c for copy/pasting so you may need this.

    Of course, you should also ensure that the terminal window has keyboard focus, ctrl + c won't work if your browser window has focus.

    0 讨论(0)
提交回复
热议问题