Discord bot showing error! Someone to help?


#1

Hey there,

I have made a Discord bot and now it’s showing up a unexpected error!
Here is the error file:
module.js:549

throw err;

^

Error: Cannot find module ‘discord.js’

at Function.Module._resolveFilename (module.js:547:15)

at Function.Module._load (module.js:474:25)

at Module.require (module.js:596:17)

at require (internal/module.js:11:18)

at Object. (/app/server.js:4:17)

at Module._compile (module.js:652:30)

at Object.Module._extensions..js (module.js:663:10)

at Module.load (module.js:565:32)

at tryModuleLoad (module.js:505:12)

at Function.Module._load (module.js:497:3)

Can someone tell me what’s wrong? Because all the packages that needs to be installed are already installed!

Thanks for helping :smiley:


#2

Has your project run out of space? If you run df from the console, how much space is taken up in the /app folder?

If you continue to have problems, let us know the project name and we’ll take a look. If your project is private, either make it public temporarily or DM me a join link so we can view the code. Thanks.