The easiest way to kill a process by port number on a Mac

Almost every NodeJS developer would be familiar with the error message Error listen EADDRINUSE: address already in use. The message simply means that the application could not start because there is already a process using that port. Here is the easiest way I have found to stop a process running on your Mac that is using a specific port.

  1. Add a new file called stop

I am a full stack JavaScript developer, living in Melbourne, Australia. My preferred stack is Mongoose, TypeScript, Node.js, React & GraphQL.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

IaaS/CI /CD with Kubernetes on GCP

How we built a real-time in-game currency service with 7.5M transactions per minute

IntelliJ IDEA debugging best practices

Getting Started with google cloud vision api with java

How did we start Vivid Money for iOS

What Is A Good And Free API Using PHP For Getting A Website Classified?

How To Publish Google Assistant Application

Setting Up a Tor Hidden Service [A How-To Guide] | Hacker Noon

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Tom Nagle

Tom Nagle

I am a full stack JavaScript developer, living in Melbourne, Australia. My preferred stack is Mongoose, TypeScript, Node.js, React & GraphQL.

More from Medium

How to Create and Use App Icons in a PWA

Alexa, ask my TV to do something

Supercharged Visual Studio Code — Part 1

WAI261 Tutorial 0 — Setting up VSCode, Git and NodeJS