Every day, when I go in my discord bot project, it says Error: Cannot find module ‘express’
And it keeps on doing it with a few packages, and when I reinstall them it will work, but it does this every day
Every day, when I go in my discord bot project, it says Error: Cannot find module ‘express’
And it keeps on doing it with a few packages, and when I reinstall them it will work, but it does this every day
Could you share the project name so we can get a better idea of why that’s happening?
bbilishbot
happening in more projects if im not wrong
are you part of the support team?
Nope, just part of the community haha. Could you try removing node.js
as a dependency in package.json
? I think that’s what’s causing the packages not to install properly.
I forgot to make the project private, did you touch anything or removed?
Were you able to edit?
No, I couldn’t edit it. I remixed my own copy and experimented with my copy
Could you possibly delete the copy? its a private code
No worries, I’ve deleted it. For what it’s worth, remixing doesn’t exposing any of the private keys in your .env
file, so nobody other than you can see those.
Did removing node.js
help?
Thank you for deleting it, how do i remove node.js?
Just remove it from package.json?
Yep, just remove that line (something like "node.js": "0.0.0",
) from package.json
.
I just did and it worked, thank you so much!
No problem!