I think your 5000, 3000 port still occupied by the some processor. you can recheck the port numbers are still occupied. i have added some commands to check the ports are still occupied by another process.
1.if you'r using windows you will run this netstat -ano | findstr /I "5000" command in your cmd
2.if you are using linux system you will run this sudo lsof -i:5000 command in your terminal
if the ports are occupied by some processor you can change the port number and run your project otherwise you will kill the processor using pid, after run the project.
i have added the command, how to kill the running processor.
1.LINUX (sudo kill -9 pid(replace the actual pid))
2.LINUX ( kill -9 pid(replace the actual pid))
linux command execution example
windows command execution example
Note: Only kill the process if it is a Node.js process. If it's another service, choose a different port.