How to change port in angular 6

How to change port in angular 6

how to change port in angular 6
angular 6 is very popular now a days, but here is some very common problem in it , changeing port is on of them

we all know about angular  installation an all. but most common error is How to change port in angular 6 . today i am going to tell you how to resolve this.  use this command in your command   prompt . 

Port 4200 is already in use. Use '--port' to specify a different port.

Update for @angular/cli@6.x: In the new angular.json you now specify a port per "project"

ng serve --port 4000

Then launch browser -> http://localhost:4000/


Follow On Social Media -

Follow on Facebook   -  https://www.facebook.com/Front-End-Issue-487743404963344
Follow on instagram   -  https://www.instagram.com/frontendissue/  
Follow on Twitter       -  https://twitter.com/IssueEnd
Follow on Linkedin     -  https://www.linkedin.com/in/hitesh-patidar-34253a10a/ 
Follow on GooglePlus -  https://plus.google.com/118238268171156252992
Follow on pinterest    -  https://in.pinterest.com/frontendissue/

Comments

Post a Comment

Popular posts from this blog

Owl carousel center mode with zoom image

Add (+/-) Button Number Incrementers using jQuery

What is difference between click and onclick in jquery