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

APCCentOSFedoraLinuxOSPHPProgrammingServerTechnology
Install APC (Alternative PHP Cache) in CentOS 5/6/7 and Fedora 20/21

Install APC (Alternative PHP Cache) in CentOS 5/6/7 and Fedora 20/21

APC (Alternative PHP Cache) is a free and open source tool to cache PHP codes. 1. Install Dependency Packages for APC yum install php-pear php-devel httpd-devel pcre-devel gcc make -y 2. Install APC using PECL (PHP Extension Community Library) pecl install apc...