why is there error while running npm i ejs code example
Example 1: Error: Cannot find module 'ejs'
app.set('view engine','ejs');
app.engine('ejs', require('ejs').__express);
Example 2: ejs
npm install ejs //install ejs in cmd
app.set('view engine','ejs');
app.engine('ejs', require('ejs').__express);
npm install ejs //install ejs in cmd