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 trial

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.