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 ran npm run dev again and it failed with some reference to localhost:8080, and from what I understood, the port was already occupied. Indeed, when I went to localhost:8080 the app was still running even though npm run dev was terminated and the terminal was closed.
Steps
npm run dev
Ctrl+C
npm run dev
Results
- Expected: it should restart the dev server
- Actual: it fails with an error; the server isn't halted and continues to run on
localhost:8000
Brute-force fix
Kill the process manually. In WIndows, you can kill Node.js: Server-side JavaScript from Task Manager.
Description
I had to restart the dev server after pulling in a package. In my terminal, where
npm run devcommand was being executed, I pressed Ctrl+C to abort it. Then I rannpm run devagain and it failed with some reference tolocalhost:8080, and from what I understood, the port was already occupied. Indeed, when I went tolocalhost:8080the app was still running even thoughnpm run devwas terminated and the terminal was closed.Steps
npm run devCtrl+Cnpm run devResults
localhost:8000Brute-force fix
Kill the process manually. In WIndows, you can kill
Node.js: Server-side JavaScriptfrom Task Manager.