How to use Command Prompt after ng serve was compiled

12,191

Solution 1

There are simple ways:

  1. If you use Command Prompt(Terminal), open another Command Prompt inside your project path.
  2. If you use IDE like Visual Studio Code, open Terminal and then you can use Plus(+) sign for openning anothor Terminal like below image:

Visual Studio Code Terminal

  1. If you use IDE like WebStrom (Jetbrains IDE), first open IDE Terminal then make right click and select New Session and new terminal openning like below image:

WebStorm Teminal

Solution 2

There are couple of ways you can do that.

If you do that these will demonise your process to run in background and your same command prompt becomes usable again.

Share:
12,191
Shyam
Author by

Shyam

Updated on June 05, 2022

Comments

  • Shyam
    Shyam almost 2 years

    In Angular 5, after creating project folder, installing Angular CLI, Node.js (all latest versions) and ng serve was compiled successfully through command prompt. Then I tried to use command prompt to install bootstrap. I could not control / use command prompt. What might be the cause and effect?

    Command prompt stuck after compilation

    • omeralper
      omeralper over 6 years
      open another command prompt
    • Shyam
      Shyam over 6 years
      yep i tried it. even though not working
    • omeralper
      omeralper over 6 years
      i think you are not in the same path. it must work.