The port you are listening to is already being tapped by another process. In this case, I got the feeling that this is yours. Can you make ps aux | grep node ps aux | grep node , and then use kill <pid> kill your node process. Alternatively, you can also try a different port.
- Update -
If you want to find which process is listening, you can use netstat -lpn ( -l to find out the listening ports, -p to include the process name and pid, -n not to allow host names, otherwise it will be slow) to find processes that are tapped on different ports. If there were too many, you can do netstat -lnp | grep :8888 netstat -lnp | grep :8888 .
You can also use fuser 8888/tcp , which will show you the pid process, and adding -k will kill the process, the fastest way ever.
I realized that these two commands only work on Linux .
Farid nouri neshat
source share