Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialCaleb Waldner
19,567 PointsCannot terminate server
I ran the server as instructed, but there are no instructions on how to terminate the server. I ended up googling a solution, but I was surprised no instructions were given for this. What is the proper way to terminate a server running on localhost?
1 Answer
Emre K.
Full Stack JavaScript Techdegree Graduate 16,409 PointsHello Caleb,
My main method is using the keyboard shortcut combination of CTRL + C at the same time.
Note: My environment is usually macOS and sometimes Ubuntu -- so it may differ depending on your operating system.
More reading on this: https://yvonnickfrin.dev/shutdown-correctly-nodejs-apps
All the best.