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.

JavaScript Build a Simple Dynamic Site with Node.js Handling Routes in Node.js Home Route

Time Machine back to 2015 for this course (aka how to find documentation from the correct nodejs version used here)

If you open a workspace, then the console in that workspace, then enter node -v the output returned will be v8.17.0, as of January 2023. That was an LTS (Long-Term Support) version of nodejs circa 2015.

Many people have had a lot of trouble following along with this course for a few reasons, primarily the fact that the version of node you will install `${today}` is very different. Much of what this course will teach is relevant in terms of processes, approach to problem solving, thought and design patterns, workflow, etc. Unfortunately, much of the code will be outdated and arguably confusing. I hope this course gets an update, because Treehouse is already charging for the content, but costing the learners an indeterminant amount of extra money and time for having to overcome the additional mental workload of converting this old code to new standards.

The point of being here is that you don't already know how to write nodejs code. Being taught, arguably, the wrong way through this outdated course is going to cause a lot of headaches and trouble for people.

See the link below for v8.17.0 documentation if you want to try and follow along directly.

https://nodejs.org/docs/latest-v8.x/api/

As of this post, the current LTS version of node is 18.13.0.