#discordjs/opus trying to download invalid opus

22 messages · Page 1 of 1 (latest)

rough anvil
#

Hi im trying to use discordjs/voice but my installation of djs opus fails everytime due to the post install script. im using discord.js v14, djs/voice v0.14.0 and djs/opus v0.8.0. The post install script is trying to install a opus version with node-v115 which doesnt exist after i checked the release section. why is that? is there no way to fix or manually change it or whatever that is used to determine this? my node version is 20.0.0

hard inletBOT
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

wild delta
rough anvil
#

pnpm install ?

#

it works in codespaces

#

but doesnt work on my local device, which is windows 10

#

and the codespace is linux iirc

wild delta
#

It's unclear from the image you provided what is actually happening. Are you installing the packages? Or running the program and packages are already installed?

rough anvil
#

i cloned my repo to my computer and was gonna install the package. before that i always used github codespace, the issue never occured there

wild delta
#

Install windows buildtools

#

or visual studio build packages

rough anvil
#

is that really gonna solve it. the above error spawned from resource not found. the installer is trying to download an invalid version of opus. and i do have vs build packages downloaded

wild delta
#

What version of node are you using?

#

node -v

rough anvil
#

20.0.0

wild delta
#

🤔

#

Try using an LTS version

#

Like 18.16.0

#

Not sure if the package has been tested with such a new version

rough anvil
#

oh it workd with lts

wild delta
#

Well yay its working now for you dogeHaHa