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


How do I open the terminal in the workspace?

How do I open the terminal in the workspace? Do I click on one of the tabs?

4 Answers

Hey, all.

I've found that if you follow Guil's command exactly in the Create a promise video:

node promises-breakfast.js

Treehouse's workspace console will throw the following error:

    throw err;                                                                          

Error: Cannot find module '/home/treehouse/workspace/promises-breakfast.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 bootstrap_node.js:625:3     

To resolve this error, reference the file's full path:

node /home/treehouse/workspace/js/promises-breakfast.js
Jennifer Nordell
Jennifer Nordell
Treehouse Teacher

Hi there, Jamela Peterson ! At the very top you can click "View -> Show console" and it should open up the console for you.

Hope this helps! :sparkles:

Thank you. I opened the console via the view tab; however, it doesn't look like the terminal in the video. It won't let me type in the same information as the teacher. In the video, he opened the terminal which looks different from the console.

Jennifer Nordell
Jennifer Nordell
Treehouse Teacher

Jamela Peterson Hi again! Unfortunately, I have no way to know to which video you're referring. But the console in the workspace is the only terminal available. Are you sure that the teacher didn't open the terminal on their computer? Depending on your operating system there will be multiple ways to open the terminal. On macOS open spotlight (command + space) and type in "terminal" to search. On Windows, search for "cmd.exe" to open the command prompt.

It would be interesting to know to which video you are referring. Post a link to the video here and I can take a look :smiley:

Hey Jennifer Nordell. Thank you for your help and this information!! Here is a link to the video I'm referring to: https://teamtreehouse.com/library/create-a-promise

Hey Jamela Peterson , the reason the console doesn't look the same as the terminal is because in the video Guil is using what looks like "Visual Studio Code" as his text editor. The console is the TreeHouse workspace version of the terminal in this instance. You should be able to run all the commands he runs without any issues as long as you are referencing all the same files properly with the commands. What kind of error message are you getting?