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 trialJamie Epperson
1,948 PointsI'm getting some errors in the work space console but yet the code runs and does what it ask us to do.
I'm trying to complete the project at the end of the starter track and can't figure out why the errors are coming up. If I'm reading it write it doesn't even all contain to what I wrote. https://w.trhou.se/jodwxei5na, this is my work space.
2 Answers
Steven Parker
231,153 PointsThese modules contain code intended to be run in a browser, you won't be using node for this.
To run this project, use the "Preview Workspace" button (looks like an eye) in the upper right of the workspace.
Jamie Epperson
1,948 PointsSo the errors in the console are okay as long as it runs?
Steven Parker
231,153 PointsThe errors are from running node, but you won't use node at all here. Run this only using the preview button.
Jamie Epperson
1,948 PointsThank you. It was freaking me out. I didn't know what it was talking about being some lines if I read it right weren't even lines I wrote. Whew. Thank you so much.
KRIS NIKOLAISEN
54,971 Pointsscript.js is in the js folder so you would have to run node js/script.js
Jamie Epperson
1,948 PointsEven when I ran mode js/script.js it does the same thing.
Jamie Epperson
1,948 PointsJamie Epperson
1,948 PointsThe errors it's showing is: treehouse:~/workspace$ node script.js module.js:550 throw err; ^ Error: Cannot find module '/home/treehouse/workspace/script.js at Function.module._resolveFilename(module.js:548:15) at Function.module._load(module.js:475:25) at Function.module.runMain(module.js:694:10) at Startup(bootstrap_node.js:204:16) at bootsrap_node.js:625:3