Sattishh / voice-interrupter-discord-bot

Interrupts a user whenever they talk in a Discord Voice Channel
MIT License
4 stars 1 forks source link

error #3

Closed andrevitxr closed 2 years ago

andrevitxr commented 2 years ago

C:\xampp\htdocs\voice-interrupter-discord-bot-main\node_modules\prism-media\src\util\loader.js:12 throw new Error(errorLog.join('\n')); ^

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

Sattishh commented 2 years ago

Hey @playboyander, please do the following commands in your cli in the bot folder npm i @discordjs/opus node-opus opusscript

The general idea is that if the node error is Cannot find module 'something' you should do npm i something

Please let me know whether this fixed the issue or not!

andrevitxr commented 2 years ago

package.lock is old, it was created on an older version of npm, it doesn't support discord.js@12.5.3

you need to update package.lock

Sattishh commented 2 years ago

Do npm rebuild