I am learning angular 2 and for the first time I am using the angular CLI project to create a sandbox project.
I was able to run the command \"ng serve\" and it wor
If you compiling your angular JS code in both CMD and IDE then this issue occur. In CMD, your angular JS code compile automatically whenever you change your angular JS code in IDE and then your IDE want to occupy the same port i.e 4200 which is occupied by CMD already So, there is a simple solution for this issue, just close your cmd while compiling your code in IDE.