Express missing ... Again. Help!


#1

My project, cookiebo is down again because express is missing, although it should be a native thing. Halp


#2

This isnt the first time this has happened, and i dont know how to fix it


#3
  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

#4

will that remove all the ones ive added too?


#5

still not working @cori i hate to ping you but this bot is in 50+ servers ;-;


#6

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.


#7

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)

#8

The only message it sent in the console was “restarting…” Then a fresh console line


#9

In package.json, you’re specifying a URL to a dependency that doesn’t exist: “mooo.git”


#10

It does. Its private


#11


#12

you’re also specifying an incorrect app name - no spaces allowed. Removing that fixes it.


#13

? Oh. Ok. Ty lol. I didnt realize that could throw everythi g off … But what was with the express issue?


#14

Yep, there’s an explanation of what the Express mention was about here: Cannot find module "express"


#15

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