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 Building a MEAN Application Introduction to the MEAN Stack Setting Up an Express Application

Can't run app.js because I keep get error that says my app.js file can't be found.

I can't get my app to run because I keep getting this error

```Henrys-MacBook-Pro:mean-todo henrymorrow$ node src/app.js module.js:338 throw err; ^

Error: Cannot find module '/Users/henrymorrow/Documents/mean-todo/src/app.js' at Function.Module._resolveFilename (module.js:336:15) at Function.Module._load (module.js:286:25) at Function.Module.runMain (module.js:475:10) at startup (node.js:117:18) at node.js:951:3```

I checked the path in and out of the console and it is there.

Henrys-MacBook-Pro:mean-todo henrymorrow$ ls node_modules package.json public src Henrys-MacBook-Pro:mean-todo henrymorrow$ cd src Henrys-MacBook-Pro:src henrymorrow$ ls app,js

Am I missing something with the syntax?

Here is my app.js code if it will help.

```'use strict';

var express = require('express');

var app = express();

app.listen(3000, function () { console.log("The server is running"); }); ```

Nevermind I found a syntax issue.

1 Answer

Nevermind I found a syntax issue.