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<noob />
17,062 PointsI cant run the promises-breakfast.js file with node
this is the snapshot: http://w.trhou.se/xovjzqh50x
5 Answers
Daven Hietala
8,040 PointsWere you using the VS Code text editor? I right clicked the breakfast.js file and selected "Open in Terminal". That didn't work.
When I run "node promises-breakfast.js" Inside of the terminal that comes with VS Code, it returns "'node' is not recognized as an internal or external command, operable program or batch file."
How exactly did you go about extracting breakfast.js?
macdaradashdev
11,394 PointsThank you @Julien Delusseau!
Jamie Gobeille
Full Stack JavaScript Techdegree Graduate 19,573 PointsHello! It is throwing an error because the promises-breakfast.js file is not located in the root directory. The file is located in the js file.
Just write node js/promises-breakfast.js into your command line OR type cd js which will move you from the root directory and into the js file and then type node promises-breakfast.js.
<noob />
17,062 PointsDaven Hietala Hi :] My solution was to extract the breakfast.js file from the the folder and run the code, and it worked!
Julien Delusseau
4,742 PointsYou need to go into your js folder.
In the workspace, just type: cd js
Now you can run: node promises-breakfast.js
Hope it help.
<noob />
17,062 Points**UPDATE* I got it fixed by extract this file from the js file how i can run it if it was on the file?
Daven Hietala
8,040 PointsWhat did you do? I am having the same issue! I have been reading through forums and blog post, stack overflow, vs code help menu's and on and on! I can't get it to work! How does guil have his terminal within vs work like that?
Sorry for the rant. More precisely, what did you do to get promises-breakfast.js to run with node?