Last active
May 20, 2022 19:28
-
-
Save MichaelDimmitt/2909aa6ec60404c5d0d758171493a2e1 to your computer and use it in GitHub Desktop.
reset node ports
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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