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

Austin Schneider
Austin Schneider
4,919 Points

Couldn't run node on promises-breakfast.js in vs code, found solution

Read all of the other questions about how to make the terminal work like Guil's in the video but none really made sense and were convoluted.

For me I ended up having to use unix commands to navigate through my directories to the downloaded project files in my downloads directory. Then I had to rename the 3- Understanding Promises folder to 3_understanding_promises because the terminal can't handle the spaces in the original file name when running commands. It takes the spaced out words as arguments, and thus it fails to operate as desired. After renaming, then navigating into the folder, then to 2-create-a-promise/start/js, then I was able to to get node to run on promises-breakfast.js properly.

SWEET SUCCESS. Took me like 3 days to figure out lol.

Hope this helps someone. I use this site: https://www.tutorialspoint.com/unix/index.htm for help with terminal commands.