bash: /Users/abdurahman/.bash_profile: line 9: syntax error: unexpected end of file Abdus-Air-5:FcExam abdurahman$ nodemon run server [nodemon] 1.18.10 [nodemon] to restart at any time, enter rs [nodemon] watching: . [nodemon] starting node run server server.js events.js:167 throw er; // Unhandled 'error' event ^
Error: listen EADDRINUSE: address already in use :::5000enter code here
Asked
Active
Viewed 592 times
1
![](../../users/profiles/2313887.webp)
Neil Lunn
- 130,590
- 33
- 275
- 280
![](../../users/profiles/7771607.webp)
abdurahman
- 11
- 1
-
You can follow this post to solve the problem. https://stackoverflow.com/q/4075287/5589964 – Chuong Tran Mar 04 '19 at 14:06
1 Answers
1
The error is because of some other process running on port 5000. If you are using linux:
lsof -i:5000 | grep 5000
This command will give you the pid of the process running on port 5000 and then you can kill the process by
kill -9 <pid>
![](../../users/profiles/11148793.webp)
mayank Chandel
- 40
- 1