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 Asynchronous Programming with JavaScript Understanding Promises Create a Promise

David Shulkin
David Shulkin
Front End Web Development Techdegree Student 10,254 Points

internal/modules/cjs/loader.js:888 throw err

Hey guys, I'm trying to run node promises-breakfast.js in my vs code terminal and I can't get it to work this is what shows up on my terminal screen.

Error: Cannot find module '/Users/davidshulkin/promises-breakfast.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15) at Function.Module._load (internal/modules/cjs/loader.js:730:27) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) at internal/main/run_main_module.js:17:47 { code: 'MODULE_NOT_FOUND', requireStack: []

When I run the code in browsers console I get what I need though.

1 Answer