DEV Community

Discussion on: Let’s Build a Video Chat App with JavaScript and WebRTC

Collapse
 
xgubianas profile image
xgubianas

Hi all !
I've done all steps (also open firewall in cloud server), but when I go to the last step (open browser):
82.223.5.78:8000
I get this error:
Error: Cannot find module 'ejs'
Require stack:

  • /var/www/vhosts/guvavet.com/app.guvavet.com/videochat/node_modules/express/lib/view.js
  • /var/www/vhosts/guvavet.com/app.guvavet.com/videochat/node_modules/express/lib/application.js
  • /var/www/vhosts/guvavet.com/app.guvavet.com/videochat/node_modules/express/lib/express.js
  • /var/www/vhosts/guvavet.com/app.guvavet.com/videochat/node_modules/express/index.js
  • /var/www/vhosts/guvavet.com/app.guvavet.com/videochat/index.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15) at Function.Module._load (internal/modules/cjs/loader.js:725:27) at Module.require (internal/modules/cjs/loader.js:952:19) at require (internal/modules/cjs/helpers.js:88:18) at new View (/var/www/vhosts/guvavet.com/app.guvavet.com/videochat/node_modules/express/lib/view.js:81:14) at Function.render (/var/www/vhosts/guvavet.com/app.guvavet.com/videochat/node_modules/express/lib/application.js:570:12) at ServerResponse.render (/var/www/vhosts/guvavet.com/app.guvavet.com/videochat/node_modules/express/lib/response.js:1012:7) at /var/www/vhosts/guvavet.com/app.guvavet.com/videochat/index.js:15:6 at Layer.handle as handle_request at next (/var/www/vhosts/guvavet.com/app.guvavet.com/videochat/node_modules/express/lib/router/route.js:137:13)

Of course, all files are into the folders, and XirSys credentials on the file...
what can I do? Thanks in advance !!

Collapse
 
tarun57 profile image
tarun-57

Simply write this in your terminal in root directory:
npm install ejs
click enter, and try again. This should be working