I am getting this error when running command 'npm start' in React. But I have stopped my application first and then starting again. Why is it showing this error, Is there any way I can get rid of that.
Reason can be that your port - 3000 is not released. You can free the ports using commands in mac. Firstly, find the PID of port that needs to be released. If you want to find PID of port: 3000 the command will be
lsof -i :3000
This will list down the processes related to port 3000. From PID column copy PID and run below command
kill -9 PID