Express missing ... Again. Help!

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

  1. Go to the Console
  2. Type rm -rf node_modules/ to remove node modules folder
  3. 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"

2 Likes

Oooh. ty. I honestly thought the bot just decided today was not the day to work :joy: