question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not find an Opus module! Please install node-opus or opusscript

See original GitHub issue

Issue:

I have installed opusscript, but still it shows Could not find an Opus module! Please install node-opus or opusscript. I am using this on a discord bot. First it works fine. No error is there, then after sometime, this error starts arising even though opusscript is installed. Then when i restart the bot, it starts working again. Then after sometime the same thing happens again.

Further details:

  • Operating System: Linux
  • Node.js version: 10.x
  • Commit I’m using: prism-media-1.1.0

Edit: My opusscript version is 0.0.7, is that supposed to be the cause of problem.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:33 (7 by maintainers)

github_iconTop GitHub Comments

13reactions
Gr8zcommented, Nov 25, 2019

+1

4reactions
victorst79commented, Jan 13, 2021

If it helps, I just solved this problem:

An error has occurred: Error: Error: Cannot find module '/app/node_modules/@discordjs/opus/prebuild/node-v83-napi-v3-linux-x64-glibc-2.31/opus.node'

The only thing I have done has been to install the packages:

At least with these dependencies ytdl-core is working for me. Regards!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Cannot find module '@discordjs/opus'
Try this: npm install discordjs/opus. I had the same issue "Error: Cannot find module '@discordjs/opus'" when trying to get my discord js ...
Read more >
Error: Could not find an Opus module! Please install node- ...
I get an error when I try to install node opus. Can you suggest what I should do? node-opus@0.3.3 install C:\Users\georg\Downloads\Master-Bot\ ...
Read more >
opusscript
Start using opusscript in your project by running `npm i opusscript`. There are 136 other projects in the npm registry using opusscript.
Read more >
Discord.js-music-v11 NPM
Please make sure FFMPEG is installed and in your PATH. Fix: npm install ffmpeg-binaries. Issue: Couldn't find an Opus engine. Fix: npm install...
Read more >
discord.js-music-bot-bluspring - npm package
Issue: (Uncommon) Couldn't find an Opus engine. Fix: npm install node-opus or npm install opusscript. Issue: (Rare) [NPM] ERR Cannot read property '0'...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found