Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript Node.js Basics 2017 Introduction to Node.js Hello World

Begana Choi
PLUS
Begana Choi
Courses Plus Student 13,124 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.