Failed to lookup view "index" in views directory
This is how I fixed it.
app.set('views', './src/views');
app.set('view engine', 'ejs');
Try with
app.set('views', __dirname + '/views');
I had the same problem too. I have saved the index file as .html file. But it should be index.ejs. then it worked. Check that too