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.
I cant run the promises-breakfast.js file with node
this is the snapshot: http://w.trhou.se/xovjzqh50x
Daven Hietala8,040 Points
Were 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?
Hello! 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.
**UPDATE* I got it fixed by extract this file from the js file how i can run it if it was on the file?