Glitch discord.js error

Hello, I received such a problem on my bot and could not solve it. Can you help me?

module.js:550
throw err;
^

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
Eddie

I’m getting this error this time

node v8.15.1, with pnpm
Installing...
 WARN  deprecated ffmpeg-binaries@4.0.0: ffmpeg-binaries is no longer being maintained. use ffmpeg-static, or just install ffmpeg
 WARN  deprecated mc-ping-updated@0.1.1: Deprecated in favor of https://www.npmjs.com/package/mcping-js

Resolving: total 80, reused 19, downloaded 0

 WARN  deprecated snekfetch@4.0.4: use node-fetch instead
 WARN  deprecated request@2.88.2: 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.

1 Like

Thank you, my problem is fixed, the bot is working

That wasn’t an error actually…

1 Like

Just a warning caused by the library itself.

2 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.