Error
Error: Cannot find module '/root/7bLogsBot/node_modules/@discordjs/opus/prebuild/node-v108-napi-v3-linux-x64-glibc-2.31/opus.node'
Require stack:
- /root/7bLogsBot/node_modules/@discordjs/opus/lib/index.js
- /root/7bLogsBot/index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
at Module._load (node:internal/modules/cjs/loader:922:27)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object.<anonymous> (/root/7bLogsBot/node_modules/@discordjs/opus/lib/index.js:5:18)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Module.require (node:internal/modules/cjs/loader:1143:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/root/7bLogsBot/node_modules/@discordjs/opus/lib/index.js',
'/root/7bLogsBot/index.js'
]
}
Node.js v18.16.1
2 Replies
- 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.
no
I did the command
npm i
also note my system is ubuntu 20.4
No
I did an npm rebuild and the node_modules file was not uploaded! I did npm i
@qjuh
t
@qjuh bro can you help me ?