kill something using port mac code example Example 1: kill port in mac npx kill-port 8080 Example 2: killing a port mac kill -9 <PID>