@DiscordJs/Opus installation error for node v20

I have been investigating the errors when installing this package and it seems that @Discordjs/opus is not compatible with version 20 of Node.JS By carrying out several installation/uninstallation tests, I have come to that conclusion, trying different versions of PYTHON and Node.JS and it is always the same for version 20 of Node.Js This error indicates that there was a problem trying to install the @discordjs/opus package. The specific error Error: spawn EINVAL usually occurs when there is a problem with your environment configuration. The error also mentions node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help. node-pre-gyp is a tool used to compile native Node.js modules, and it seems there was an issue with it.
6 Replies
d.js toolkit
d.js toolkit•5w ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
chewie 🌈
chewie 🌈•5w ago
Please show the full error.
d.js docs
d.js docs•5w ago
To share long code snippets, use a service like gist, sourcebin, pastebin, or similar instead of posting them as large code blocks or files.
SrGobi
SrGobi•5w ago
Problem installing @discordjs/opus with Node.js v20 or higher I'm experiencing an issue when trying to install @discordjs/opus in an environment using Node.js v20 or higher. Here are the details: Around: Operating System: Windows 11 Node.js version: v20.13.1 npm version: 10.8.1 bun version: 1.1.7 Steps to reproduce: I run npm install @discordjs/opus in the terminal. Expected result: The @discordjs/opus package installs successfully without errors. Current result: The installation fails with the following error: (node-pre-gyp ERR! stack Error: spawn EINVAL) I have tried the following solutions without success: Update all dependencies with npm update. Delete the node_modules directory and the package-lock.json file, and then run npm install again. Switch to Node.js v18 with nvm. Any help resolving this issue would be greatly appreciated. Thanks in advance.
No description
dubfib
dubfib•4w ago
can you show a screenshot of you using node v18 to install? i don't think @discordjs/opus supports v20. its only up to v19 i believe. theres no binaries on the github release for v20.
SrGobi
SrGobi•4w ago
Traducir texto con tu cámara That is the problem that it only reaches version 18/19 of node, when it will be compatible with node v20