loading...

re: How to set up a Discord music bot VIEW POST

FULL DISCUSSION
 

music won't open and this is the error

Error: Error: Cannot find module '@discordjs/opus'
Require stack:

  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\prism-media\src\util\loader.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\prism-media\src\opus\Opus.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\prism-media\src\opus\index.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\prism-media\src\index.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\discord.js\src\client\voice\player\BasePlayer.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\discord.js\src\client\voice\player\BroadcastAudioPlayer.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\discord.js\src\client\voice\VoiceBroadcast.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\discord.js\src\client\voice\ClientVoiceManager.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\discord.js\src\client\Client.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\discord.js\src\index.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\discord.js-commando\src\client.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\discord.js-commando\src\index.js
  • C:\Users\Davi\Desktop\Master-Bot-master\index.js Error: Cannot find module 'node-opus' Require stack:
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\prism-media\src\util\loader.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\prism-media\src\opus\Opus.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\prism-media\src\opus\index.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\prism-media\src\index.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\discord.js\src\client\voice\player\BasePlayer.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\discord.js\src\client\voice\player\BroadcastAudioPlayer.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\discord.js\src\client\voice\VoiceBroadcast.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\discord.js\src\client\voice\ClientVoiceManager.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\discord.js\src\client\Client.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\discord.js\src\index.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\discord.js-commando\src\client.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\discord.js-commando\src\index.js
  • C:\Users\Davi\Desktop\Master-Bot-master\index.js Error: Cannot find module 'opusscript' Require stack:
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\prism-media\src\util\loader.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\prism-media\src\opus\Opus.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\prism-media\src\opus\index.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\prism-media\src\index.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\discord.js\src\client\voice\player\BasePlayer.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\discord.js\src\client\voice\player\BroadcastAudioPlayer.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\discord.js\src\client\voice\VoiceBroadcast.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\discord.js\src\client\voice\ClientVoiceManager.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\discord.js\src\client\Client.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\discord.js\src\index.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\discord.js-commando\src\client.js
  • C:\Users\Davi\Desktop\Master-Bot-master\node_modules\discord.js-commando\src\index.js
  • C:\Users\Davi\Desktop\Master-Bot-master\index.js at Object.loader as require at loadOpus (C:\Users\Davi\Desktop\Master-Bot-master\node_modules\prism-media\src\opus\Opus.js:17:17) at new OpusStream (C:\Users\Davi\Desktop\Master-Bot-master\node_modules\prism-media\src\opus\Opus.js:46:10) at new Encoder (C:\Users\Davi\Desktop\Master-Bot-master\node_modules\prism-media\src\opus\Opus.js:135:5) at AudioPlayer.playPCMStream (C:\Users\Davi\Desktop\Master-Bot-master\node_modules\discord.js\src\client\voice\player\BasePlayer.js:58:34) at AudioPlayer.playUnknown (C:\Users\Davi\Desktop\Master-Bot-master\node_modules\discord.js\src\client\voice\player\BasePlayer.js:53:17) at VoiceConnection.play (C:\Users\Davi\Desktop\Master-Bot-master\node_modules\discord.js\src\client\voice\util\PlayInterface.js:71:28) at C:\Users\Davi\Desktop\Master-Bot-master\commands\music\play.js:228:12 at processTicksAndRejections (internal/process/task_queues.js:88:5)
code of conduct - report abuse