Skip to content

Instantly share code, notes, and snippets.

@MichaelDimmitt
Last active May 20, 2022 19:28
Show Gist options
  • Save MichaelDimmitt/2909aa6ec60404c5d0d758171493a2e1 to your computer and use it in GitHub Desktop.
Save MichaelDimmitt/2909aa6ec60404c5d0d758171493a2e1 to your computer and use it in GitHub Desktop.
reset node ports
# inspired by: https://github.com/tiaanduplessis/kill-port/blob/master/index.js
lsof -ni | grep node | awk '{print $2}' | xargs kill -9
# windows command line: https://www.shellhacks.com/windows-grep-equivalent-cmd-powershell/
netstat -nao | findstr /c:"4041"
taskkill /PID 14428 /F
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment