停止node进程

运行vue-cli项目的时候经常出现端口号占用,npm run dev报错的信息,

此时可通过任务管理器粗暴的杀死node进程,也可以通过cmd检测占用某个端口的程序,进而杀死该进程,步骤如下:

1.netstat -ano

2.netstat -aon|findstr "某个端口号"

3.tasklist|findstr "PID"

4.taskkill /f /t /im tor.exe

附示例图:

原文地址:https://www.cnblogs.com/blooms/p/7577054.html