If you run the serverless platform locally, like Laravel on React, somtimes. you need to kill the ports, to do that you need first find the process ID on mac and then kill it.
First, find the PID – port ID (ie for port 8000)
1 2 3 4 5 | sudo lsof -i :8000 |
Then you need to kill the process
1 2 3 4 5 | kill -9 PID |