STEP 1
See npm ls | grep ejs npm ls | grep ejs at the root level of your project to check if you have added dependency to your ejs project.
If not, add it as dependencies in your project. (I prefer to add a dependency on package.json instead of the npm install module.)
eg.
{ "name": "musicpedia", "version": "0.0.0", "private": true, "scripts": { "start": "node ./bin/www" }, "dependencies": { "body-parser": "~1.15.1", "cookie-parser": "~1.4.3", "debug": "~2.2.0", "express": "~4.13.4", "jade": "~1.11.0", "ejs": "^1.0.0", "morgan": "~1.7.0", "serve-favicon": "~2.3.0" } }
STEP 2 download dependencies
npm install
STEP 3 check ejs module
$ npm ls | grep ejs musicpedia@0.0.0 /Users/prayagupd/nodejs-fkers/musicpedia โโโ ejs@1.0.0
prayagupd Oct 13 '16 at 4:52 2016-10-13 04:52
source share