I\'m an amateur learning to build with node.js. I\'ve been following a tutorial to create my first node.js app. It worked perfectly until I entered \'npm start\'. The log is:>
You are not exporting anything in the app.js file. At the end of app.js file, include following line.
app.js
module.exports = app;
See whether your problem goes away.
And one more addition: you have var app = express(); twice in your app.js.
var app = express();