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 trialMehiret Abdissa
415 PointsHow create a test file and run it?
A simple way to test that node.js works is to create a simple JavaScript file: name it hello.js, and just add the code console.log('Node is installed!');. To run the code simply open your command line program, navigate to the folder where you save the file and type node hello.js. This will start Node.js and run the code in the hello.js file. You should see the output Node is installed!.
I still get in an error .
Mehiret Abdissa
415 PointsThis is the error i got from Command prompt: Error: can not find module'C:/users/meli/hello.js' at function.Module._resolveFilename (module.js:536:15) at function.Module._load(module.js:466:25) at function.Module.runMain (module.js:676:10) at startup (bootstrap_node.js:187:16) at bootstrap_node.js:608:3
Kristopher Parchen
6,225 PointsKristopher Parchen
6,225 PointsCould you please describe what the error says?