How to run ng serve in a different port
Como ejecutar ng serve en un puerto diferente
Hello Everyone,
In his post I'm going to explain How we can use a different port that ng use for default(4200).
Maybe if we have an Angular 2 Project running, and then we also need another project running, and when we try to execute the ng serve command, CLI give us a message like this.
Port 4200 is already in use. Use '-port' to specify a different port
port 4200 is busy |
So we should execute a new command like this, it has to fix the problem.
Altough you might use a different port 4202,4203 etc.
ng serve --port 4201
ng serve running in a different port |
I hope this will help all of you in your amazing Angular 2 Project.
See you next time.
Comments
Post a Comment