Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Computer Science Introducing the Practice

Cannot 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.
.a{fill-rule:evenodd;}techdegree seal-36
Emre K.
Full Stack JavaScript Techdegree Graduate 16,375 Points

Hello 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.