tskill nodejs port

  1. Open a terminal or command prompt.

  2. Execute the following command to identify the process ID (PID) associated with the Node.js process using a specific port (replace "port" with the actual port number):

bash netstat -ano | findstr :port

  1. Locate the Node.js process in the output and note its corresponding PID.

  2. Terminate the Node.js process using the obtained PID with the following command (replace "PID" with the actual process ID):

bash taskkill /F /PID PID