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
rm -rf node_modules/to remove node modules folder
- After that type
npm ito install your modules again
will that remove all the ones ive added too?
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.
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