Unable to require opus
Hi, I've installed the latest opus version yet I get the following error:
13 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
And if i try to rename that folder my bot won't work properly
But it's installing that same version no matter how many times I'm deleting the node modules folder and package lock..
So which version of node should i try running on
Thanks
on github releases it says it does
https://github.com/discordjs/opus/releases/tag/v0.9.0
unfortunately it doesn't; node v16 ~ 18 are running fine, and with every subsequent version of node after, its trying to require a latest opus version that hasn't been built at the moment
could you do
npm ls @discordjs/opus
or send the package.json dependencies
if it is 0.8.0
reinstall opus at version 0.9.0
0.8.0
only supports node v18 while 0.9.0
supports node v19@dubfib thanks for the help, it's working on a new repl but not with my current project idk why, it's still installing that same version
yeah no problem for some reason when installing I had to add the latest version to it
@0.9.0
as it did @0.8.0
automaticallyi did @discordjs/opus@latest and it said git not found but typing 0.9.0 worked
yeah maybe the npm package is messed up
yeah, anyway, thanks again
also you might want to fix those vulnerabilities.