Common issues & solutions Node - aakash14goplani/FullStack GitHub Wiki

It's the way you structured your app. If you're starting the server from outside of the folder then you need to provide an absolute path to the views folder:

app.set('views', path.join(__dirname, 'views'))