Skip to content

Instantly share code, notes, and snippets.

@ciamac-da
Created June 28, 2021 13:11
Show Gist options
  • Save ciamac-da/c3c0ba4fa7106041ec3780be09515029 to your computer and use it in GitHub Desktop.
Save ciamac-da/c3c0ba4fa7106041ec3780be09515029 to your computer and use it in GitHub Desktop.
Port already in use problem in Nodejs(This is how to kill all nodes)
Sometimes there may be some issue with the NodeJS like the server is listening to some other port or
there may be some services which you want to run, but it shows an error like service is already running
or process is already running. At that time you need to kill all the instances of the NodeJS server at that time.
This method will help you to kill all the instances in NodeJS.
Command/CMD: Killings all instances of a NodeJS process via command line ==> killall node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment