How to use Command Prompt after ng serve was compiled
12,191
Solution 1
There are simple ways:
- If you use Command Prompt(Terminal), open another Command Prompt inside your project path.
- If you use IDE like Visual Studio Code, open Terminal and then you can use Plus(+) sign for openning anothor Terminal like below image:
- 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:
Solution 2
There are couple of ways you can do that.
- The official way of deployment of angular app.
- Create a start.bat (if you are using windows) and write the
ng serve --open
command there. Now you can run this file which will internally run your angular app, using forever or pm2 npm modules.
If you do that these will demonise your process to run in background and your same command prompt becomes usable again.
Author by
Shyam
Updated on June 05, 2022Comments
-
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?
-
omeralper over 6 yearsopen another command prompt
-
Shyam over 6 yearsyep i tried it. even though not working
-
omeralper over 6 yearsi think you are not in the same path. it must work.
-