Huge error whilst trying to install opus

Hi! I'm trying to install opus on my bot, but when I run the npm install command, I get the biggest error I've ever seen. Usually I'm good with understanding errors but I can't figure out where this one is coming from? Is anyone able to help? Thanks
11 Replies
brokenrecord388
brokenrecord388OP17mo ago
djs: 14.8.0 node: 16.18.1
ever_daemon
ever_daemon17mo ago
its seems linux 331 error Failed to execute '/usr/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/workspace/admin/misc/linda/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-x64-glibc-2.17/opus.node --module_name=opus --module_path=/workspace/admin/misc/linda/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-x64-glibc-2.17 --napi_version=8 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1) node-v93-napi-v3-linux-x64-glibc-2.17 g++: error: unrecognized command line option ‘-std=gnu++14’ try update g++, maybe
brokenrecord388
brokenrecord388OP17mo ago
sorry for the late reply, its Linux CentOS 7
brokenrecord388
brokenrecord388OP17mo ago
I've updated g++ (I think) and ended up with this version
brokenrecord388
brokenrecord388OP17mo ago
however now I'm getting this error which looks mostly similar
ever_daemon
ever_daemon17mo ago
update to the latest version or similar
brokenrecord388
brokenrecord388OP17mo ago
so I've managed to upgrade to 7.3.1, and am getting a new huge error which seems different from the last ones. this one totally froze my box and after about 10 minutes, I ctrl+c'd it and it immediately threw this
brokenrecord388
brokenrecord388OP17mo ago
actually, after installing 11.2.1 and trying to reinstall it again (then forgetting about it), it reinstalled after like 15 mins, either some big ass download or my box is being weird, thanks for all your help!
Want results from more Discord servers?
Add your server