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 trialBegana Choi
Courses Plus Student 13,126 Pointsworking with Terminal and setting
hello, I don't want to work with workspace and want to have experience with my Terminal. and if I want to log the console.log message on the console, what should I do? before this, I could download project files and copy the path from html file and could execute the project on the browser. now there is only js file in the project file and I got confused that how js file and console and terminal can work together. please give me tips!
**I've already installed Node.js and brew by following given install guide
1 Answer
Zimri Leijen
11,835 PointsOpen a terminal (cmd/powershell in windows) and navigate to (using the 'cd' command) the folder where your file is in.
once you are in the correct directory/folder type node filename.js
to run it.
Begana Choi
Courses Plus Student 13,126 Pointsthank you! I got it!
Zimri Leijen
11,835 PointsZimri Leijen
11,835 Pointsmac or windows?
do you know how to navigate the terminal? (changing folders?)