Port 4200 is already in use
it should automatic shift on other port if a port is busy, currently when i try to serve two projects at a time i always get error:
Port 4200 is already in use
Thank You, M.Inzamam Malik
Just enter this below command line in your new app for simultaneously run two app at a time.
ng serve --port 4401
@ALYPAKISTAN
I also faced this problem suddenly and solved it by deleting node_modules folder and package-lock.json and again doing npm install.
something changed in package-lock.json caused this problem to me
I also faced this problem suddenly and solved it by deleting
node_modulesfolder andpackage-lock.jsonand again doingnpm install.something changed in
package-lock.jsoncaused this problem to me
Yes, Finally it works. Thank you for your solution. I wasted two days on it.
I solved this problem with yarn.
- Delete package-lock.json & node_modules folder
- Install yarn package manager
- yarn install.
- ng serve - runs goooood.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.