Here is my complete error:
Error: Cannot find module \'ejs\' at Function._resolveFilename (module.js:317:11) at Function._load (module.js:262:25)
I my case, I just added ejs manually in package.json:
{ "name": "myApp" "dependencies": { "express": "^4.12.2", "ejs": "^1.0.0" } }
And run npm install (may be you need run it with sudo) Please note, that ejs looks views directory by default