My project, cookiebo is down again because express is missing, although it should be a native thing. Halp
This isnt the first time this has happened, and i dont know how to fix it
- Go to the Console
- Type
rm -rf node_modules/
to remove node modules folder - After that type
npm i
to install your modules again
will that remove all the ones ive added too?
still not working @cori i hate to ping you but this bot is in 50+ servers ;-;
Hey @vampymaria Iâd try running enable-pnpm
in the console and see if that fixes things; it forces a full reinstall. If not, capture the messages that you see there and drop them here so we can take a closer look.
Did not work. Same errors.
module.js:550
throw err;
^
Error: Cannot find module âexpressâ
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object. (/app/index.js:2:17)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
The only message it sent in the console was ârestartingâŚâ Then a fresh console line
In package.json, youâre specifying a URL to a dependency that doesnât exist: âmooo.gitâ
It does. Its private
youâre also specifying an incorrect app name - no spaces allowed. Removing that fixes it.
? Oh. Ok. Ty lol. I didnt realize that could throw everythi g off ⌠But what was with the express issue?
Yep, thereâs an explanation of what the Express mention was about here: Cannot find module "express"
Oooh. ty. I honestly thought the bot just decided today was not the day to work