its not allowing me to use it

Error: Cannot find module 'C:\Users\ZribeDev\Documents\Software\VoiceGuard\node_modules@discordjs\voice\dist\index.js' at createEsmNotFoundErr (node:internal/modules/cjs/loader:1181:15) at finalizeEsmResolution (node:internal/modules/cjs/loader:1169:15) at resolveExports (node:internal/modules/cjs/loader:591:14) at Module._findPath (node:internal/modules/cjs/loader:668:31) at Module._resolveFilename (node:internal/modules/cjs/loader:1130:27) at Module._load (node:internal/modules/cjs/loader:985:27) at Module.require (node:internal/modules/cjs/loader:1235:19) at require (node:internal/modules/helpers:176:18) at Object.<anonymous> (C:\Users\ZribeDev\Documents\Software\VoiceGuard\index.js:13:22) at Module._compile (node:internal/modules/cjs/loader:1376:14) { code: 'MODULE_NOT_FOUND', path: 'C:\Users\ZribeDev\Documents\Software\VoiceGuard\node_modules@discordjs\voice\package.json' } const voiceService = require("@discordjs/voice"); even tho i ran install on discordjs/voice
4 Replies
d.js toolkit
d.js toolkit12mo 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! - Marked as resolved by OP
ZribeDev
ZribeDevOP12mo ago
[email protected] node: v21.4.0 -- @discordjs/[email protected] (git+ssh://[email protected]/discordjs/voice.git#309ac8596cac422cf22e51331869e011c720124c) i just used npm install discordjs/voice C:\Users\ZribeDev\Documents\Software\VoiceGuard>node index.js node:internal/modules/cjs/loader:598 throw e; ^ Error: Cannot find module 'C:\Users\ZribeDev\Documents\Software\VoiceGuard\node_modules\@discordjs\voice\dist\index.js' at createEsmNotFoundErr (node:internal/modules/cjs/loader:1181:15) at finalizeEsmResolution (node:internal/modules/cjs/loader:1169:15) at resolveExports (node:internal/modules/cjs/loader:591:14) at Module._findPath (node:internal/modules/cjs/loader:668:31) at Module._resolveFilename (node:internal/modules/cjs/loader:1130:27) at Module._load (node:internal/modules/cjs/loader:985:27) at Module.require (node:internal/modules/cjs/loader:1235:19) at require (node:internal/modules/helpers:176:18) at Object.<anonymous> (C:\Users\ZribeDev\Documents\Software\VoiceGuard\index.js:13:22) at Module._compile (node:internal/modules/cjs/loader:1376:14) { code: 'MODULE_NOT_FOUND', path: 'C:\\Users\\ZribeDev\\Documents\\Software\\VoiceGuard\\node_modules\\@discordjs\\voice\\package.json' } Node.js v21.4.0 didnt even know that i did something wrong, i am used to installing stuff using npm install and thats it ah okay [email protected] C:\Users\ZribeDev\Documents\Software\VoiceGuard -- @discordjs/[email protected] (git+ssh://[email protected]/discordjs/voice.git#309ac8596cac422cf22e51331869e011c720124c) Il send it in a moment
ZribeDev
ZribeDevOP12mo ago
here it is i went ahead and reinstalled it "@discordjs/voice": "^0.16.1", now this is the new part of the config now it does work. Thanks Qjuh
Want results from more Discord servers?
Add your server