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 2017 Introduction to Node.js Hello World

Begana Choi
PLUS
Begana Choi
Courses Plus Student 13,126 Points

working 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

mac or windows?

do you know how to navigate the terminal? (changing folders?)

1 Answer

Open 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.