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.

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.