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.