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 Node.js Basics (2014) Building a Command Line Application Handling Parsing and Status Code Errors

Node.js Basics > Building a Command Line Application > Handling Parsing and Status Code Errors

Andrew Chalkley:

At 2:10 in the video, "https://teamtreehouse.com/chalkers123.json" is Samuel Ames profile! I added a "4" to the end of the URL above for this exercise. At 7:49 in the video, when I ran "node app.js" in the console, I got "ReferenceError: http is not defined." I looked at another student's comment about adding "var http = require("http");" on line 3 in the app.js file. The entire lesson works if this is added. Apparently, when Treehouse updated to "https" from "http", that affected this particular lesson. Also, be very careful with the if/else loop & the "{}" pairing & placement of the "else" part of the loop. I had my "else" behind the wrong "}". Once that was corrected, my code was perfected for this lesson.