Unable to require opus

Hi, I've installed the latest opus version yet I get the following error:
13 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Aman
AmanOP2y ago
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
dubfib
dubfib2y ago
GitHub
Release 0.9.0 · discordjs/opus
Features feat: support node 19 (814e500)
Aman
AmanOP2y ago
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
dubfib
dubfib2y ago
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
npm uninstall @discordjs/opus
npm install --save @discordjs/[email protected]
npm uninstall @discordjs/opus
npm install --save @discordjs/[email protected]
0.8.0 only supports node v18 while 0.9.0 supports node v19
Aman
AmanOP2y ago
Aman
AmanOP2y ago
Aman
AmanOP2y ago
@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
dubfib
dubfib2y ago
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 automatically
Aman
AmanOP2y ago
i did @discordjs/opus@latest and it said git not found but typing 0.9.0 worked
dubfib
dubfib2y ago
yeah maybe the npm package is messed up
Aman
AmanOP2y ago
yeah, anyway, thanks again
dubfib
dubfib2y ago
also you might want to fix those vulnerabilities.
Want results from more Discord servers?
Add your server