I'm new to NodeJS (and anything backend related) so I apologize if this is an obvious fix or if I'm not using the right terms.I'm trying to develop a node/express app and deploy it on an Amazon Listsail instance. Everything is running fine with no errors on my localhost, but when I cloned my repo onto my Lightsail instance and try to run it, I get this error ...-----internal/modules/cjs/loader.js:613Error: Cannot find module './../models/User'Require stack:- /home/bitnami/OuiCrew-Server/config/passport.js----I made sure to run [npm install] first, but am confused as these are modules I built to hold my mongoose schemas.File structure is like this:app.jspackage.js-- config-- -- passport.js-- models-- -- user.jsLet me know if more information is needed. Any help would be really appreciated!
Submitted July 13, 2019 at 11:12PM by NitroSpaceWhale
No comments:
Post a Comment