Hello, I received such a problem on my bot and could not solve it. Can you help me?
Error: Cannot find module 'discord.js'
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)
Jump Toat Object.<anonymous> (/app/index.js:1:79)
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)
@VenozLexz Did you install discord.js. Do it by going to the package.json file and pressing the button that says ‘Add a package’. Type ‘discord.js’ and then press the first one that comes up to install it
Hope this helps
I’m getting this error this time
node v8.15.1, with pnpm
WARN deprecated firstname.lastname@example.org: ffmpeg-binaries is no longer being maintained. use ffmpeg-static, or just install ffmpeg
WARN deprecated email@example.com: Deprecated in favor of https://www.npmjs.com/package/mcping-js
Resolving: total 80, reused 19, downloaded 0
WARN deprecated firstname.lastname@example.org: use node-fetch instead
WARN deprecated email@example.com: request has been deprecated, see https://github.com/request/request/issues/3142
ERROR No matching version found for node.js@>=0.0.0 <0.0.1
Install ffmpeg-static instead of binaries, As it says.
Thank you, my problem is fixed, the bot is working
That wasn’t an error actually…
Just a warning caused by the library itself.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.