fbpx
29 C
Lahore

How to kill a port in mac, Linux or windows? – Solved

Must read

Ayyaz Zafarhttps://www.ayyaztech.com
I am Full Stack Web Developer with 10 years of professional Experience. I have following Skills: HTML5, CSS3, Javascript, jQuery, Ajax, PHP, MySQL, jQuery, Angular, React.js, Wordpress, Codeigniter, Laravel, Node.js, Mongo DB, Express.js, GraphQL, Typescript, Apollo and many more..

There are several approaches to kill a port. I found a command that is very simple and easy to remember that works in any operating system.

All you need is to have npm installed on your computer.

If npm is installed on your computer already then just run following command:

npx kill-port 3000

If you want to kill multiple ports then you can use following commands:

npx kill-port 3000 3001 3002
- Advertisement -spot_img

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article