Node.Js website stalling when using Mongoose or MongoDB — CyberPanel - WebHosting Control Panel for OpenLiteSpeed

Node.Js website stalling when using Mongoose or MongoDB

I am trying to run a website on an Ubuntu Server with CyberPanel, Node 14.4. I have edited the context settings in OLS and the website works. That is untill, I put the code const mongoose = require('mongoose') in my Server.js, npm i mongoose is okay but adding it to the code stalls the website.

I am also using body-parser, ejs and other modules but they work.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!