Cannot GET / Nodejs Error

I think you’re missing your routes, you need to define at least one route for example ‘/’ to index.

e.g.

app.get('/', function (req, res) {
  res.render('index', {});
});

Leave a Comment