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 Creating a Basic Template Engine in Node.js Reading from Files

Getting an error on the last part when asking for the chalkers username

I am getting this error only when I introduce the chalkers username, the node app.js console throws this error but I don't see where I need to make the correction.

events.js:183
throw er; // Unhandled 'error' event
^

Error: There was an error getting the profile for favicon.ico. (Not Found)

1 Answer

Sheila Anguiano
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Sheila Anguiano
Full Stack JavaScript Techdegree Graduate 35,142 Points

I was getting the same error, so here is how I solve it and hopefully your case is the same as mine.

1- I'm not using workspaces, I'm using Visual Studio Code on a Mac running OS 10.15.1 2- After some research it appears that means my node version could be an old one, which you can check from your terminal running node -v... so I have to update several programs:

-I update npm (current version 6.13.1) and installed n as recommended here: https://bytearcher.com/articles/ways-to-get-the-latest-node.js-version-on-a-mac/

-with n installed I upgraded node from v10 to v.13.3.0 (which is the latest as of Dec 8, 2019)

After that I was able to see the same things as the teacher. Hope this helps