question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Server still runs in the background

See original GitHub issue

Description

When I run npm start, then I kill the app ctrl+c, the NodeJs server still runs as a task in the background.

Expected behavior

The process should be fully stopped.

Environment

Run these commands in the project folder and fill in their results:

  1. npm ls react-scripts (if you haven’t ejected):
  2. node -v: 6.4.0
  3. npm -v: 3.10.3

Then, specify:

  1. Operating system: Windows 10
  2. Browser and version: Any

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:30 (11 by maintainers)

github_iconTop GitHub Comments

7reactions
joelwrosscommented, Jul 10, 2018

This issue persists when using Git Bash on Windows 10 (multiple different machines). Can we please re-open?

5reactions
gaearoncommented, May 23, 2017

Yes, as noted both in migration notes for 1.0 and in User Guide, the default template now includes a service worker that ensures the app can be cached for offline use (and, importantly, near-instant recurrent visits). The User Guide also includes instructions to opt out (you can remove the service work registration call from src/index.js). Does this help?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Server process keeps running in background after stopping ...
Greetings, I'm using Node 6.9.5 on Windows 10. I've been using http-server (installed globally) to test out Webpack generated builds.
Read more >
mstsc.exe keeps running in background after closing ...
Hi,. I did quick test with Server 2019 Standard Build 17763.805 running all RDS roles and client PC with Windows 10 Pro 1903...
Read more >
Close programs running in the background in Windows
Solution 1: Temporarily disable background programs (short version). Right-click the program's icon in the system tray (next to the clock), and choose Close, ......
Read more >
Find out what processes are running in the background on Linux
Explains how to find out what processes are running in the background on Linux using process STATE codes for ps, top, htop commands....
Read more >
Keep a function active in background on the server
Make this function independent and it keeps running in the background on server continuously. · Someone told me that if I work though...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found