Closed alex996 closed 7 years ago
Could you give some information about your environment?
npm run dev
?I have the same thing.
npm run dev
press Ctrl-C
reload page and its still running
In order to really stop it I have to run taskkill /F /IM node.exe
Windows 10 Git bash node 8.1.4 webpack 2.3.3 webpack-dev-middleware 1.11.0
Edited: meant webpack 2.3.x
@MaxMilton Same setup as @Christilut except I got node 6.11.1 and webpack 2.6.1. Everything else is up to date and the project is brand-new. No other commands are involved. I noticed that this issue doesn't occur with webpack-simple
template.
I have the same issue.
Windows 10 Git bash / cmd node 8.1.4 webpack 2.6.1 webpack-dev-middleware 1.10.0 webpack-hot-middleware 2.18.0
Only "npm run dev" is used.
same issue
git version 2.14.1.windows.1
but It's OK in power shell"webpack": "^2.6.1",
"webpack-bundle-analyzer": "^2.9.0",
"webpack-dev-middleware": "^1.10.0",
"webpack-hot-middleware": "^2.18.0",
This is very possibly this issue from git for windows: https://github.com/git-for-windows/git/issues/1248
Doesn't seem to be directly related to this template. Plus we will be switching to webpack-dev-server in the coming days (#975), so this would have to be re-evaluated after that.
i had the same issue on windows solved it using the commands below remember these commands will only work in cmd not in gitbash this command will give you the process id of the process running on that specific port
$ netstat -ano | find ":3000 "
this command will tell you which program is using this port
$ tasklist /fi "pid eq {process-id}"
and this will kill that process
$ taskkill /pid {process-id} /f
or you can simply run task manager and kill node's process
I have the same thing.
npm run dev
press Ctrl-C reload page and its still runningIn order to really stop it I have to run
taskkill /F /IM node.exe
Windows 10 Git bash node 8.1.4 webpack 2.3.3 webpack-dev-middleware 1.11.0
Edited: meant webpack 2.3.x
Worked for me.. thanks @Christilut
i had the same issue on windows solved it using the commands below remember these commands will only work in cmd not in gitbash this command will give you the process id of the process running on that specific port
$ netstat -ano | find ":3000 "
this command will tell you which program is using this port
$ tasklist /fi "pid eq {process-id}"
and this will kill that process
$ taskkill /pid {process-id} /f
Thank you! It works in both Ubuntu and Windows CMD
Description
I had to restart the dev server after pulling in a package. In my terminal, where
npm run dev
command was being executed, I pressed Ctrl+C to abort it. Then I rannpm run dev
again and it failed with some reference tolocalhost:8080
, and from what I understood, the port was already occupied. Indeed, when I went tolocalhost:8080
the app was still running even thoughnpm run dev
was terminated and the terminal was closed.Steps
npm run dev
Ctrl+C
npm run dev
Results
localhost:8000
Brute-force fix
Kill the process manually. In WIndows, you can kill
Node.js: Server-side JavaScript
from Task Manager.