Killing nodemon process in mac?

by | 24 Aug 2020 | Node.js | 0 comments

Nodemon is a Node.js developer tool that helps to watch for file changes and restarting the node application once a change is detected. At times, we will usually kill the node application by pressing Ctrl+C, but that doesn’t always kill the Nodemon process properly. Often, you will see the very familiar error of port currently in use message. So this guide aims to help you resolve that issue.

Solution 1: Kill nodemon with port number

kill -9 $(lsof -t -i:1337)

Replace “1337” with your node application’s port number.

Solution 2: Search for nodemon process and kill it via process ID

Search for process ID

ps -ef | grep node

Kill process by process ID

sudo kill -9 <PID>

References

  1. https://github.com/remy/nodemon/issues/1386.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Related Posts

AppleiOSMobile PhonesObjective-CProgrammingSwiftTechnology
How to install Cocoapods for Objective-C/Swift development on Mac OS?

How to install Cocoapods for Objective-C/Swift development on Mac OS?

Steps to install Cocoapods Cocoapods is used in Xcode IDE for development from iOS apps using Objective-C/Swift. Cocoapods helps developers add external libraries to their iOS project easily. The following tutorial guides you on the steps to install Cocoapods on...

AndroidAndroidAppleiOSJavaMobile PhonesObjective-CProgramming
iPhone Camera
Complete overview of the mobile app development process (Infographic)

Complete overview of the mobile app development process (Infographic)

Clients always have the misperception that developing a mobile app is as easy as developing a mobile application would be a walk in a park without much effort involved. The following infographic pretty much sums up the total cost and effort for mobile app...