Double check your file names. For me, I saw this error Error: ENOENT, and I noticed that in one of my main applications app.js I wrote
app.get('/', function(req, res) { res.sendfile('./views/plan.html'); });
when i'm in the view folder, I renamed it to home.html, this error appears accordingly
source share