Home > Mobile >  SSR Hot Reload EADDRINUSE error with Angular v13.3
SSR Hot Reload EADDRINUSE error with Angular v13.3

Time:05-26

when I try to use SSR hot reload in angular 13, I got this error: Error: listen EADDRINUSE: address already in use :::50687

The port number is random everytime I restart it.

Windows 11

Node version: 16.13.2

"@angular/core": "~13.3.3",

"@nguniversal/express-engine": "^13.1.0",

1 months ago I had no problem with all, also at the first building it has no problem, but when i try to save a file, I instantly got this error, I tried everything I found on the internet but nothing worked.

https://i.stack.imgur.com/BxvbC.png

CodePudding user response:

This is because you already have a server running on such port.

Run:

npx kill-port 50687 and then you should be able to run your Angular dev-server

CodePudding user response:

Run the below to kill the port of your application if you are in linux/MAC

sudo kill -9 `sudo lsof -t -i:50687`

for windows

taskkill /PID <50687> /F
  • Related