Here is my complete error:
Error: Cannot find module \'ejs\'
at Function._resolveFilename (module.js:317:11)
at Function._load (module.js:262:25)
npm install ejs --save worked for me ! ✅
On goormIDE, I had this file configuration :
In my main.js file, I also had this route
app.get("/", function(req, res){
res.render("home.ejs");
})
npm install ejs -g didn't add the corresponding dependency within the package.json.
npm install ejs --save did. I executed the command line from the container directory. Manually it could have been added into the package.json with :
**
"dependencies": {
"ejs": "^3.0.2",}
**