DEV Community

Discussion on: How to set up a Discord music bot (Updated December 2021)

Collapse
 
suprx44 profile image
SupRx44 • Edited

Please Help. I've followed the steps described, but this same error keeps coming up when I run "node index.js".

PS C:\Users[user]\Desktop\Master-Bot> node index.js
node:internal/modules/cjs/loader:936
throw err;
^

Error: Cannot find module 'C:\Users[user]\Desktop\Master-Bot\index.js'
←[90m at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)←[39m
←[90m at Function.Module._load (node:internal/modules/cjs/loader:778:27)←[39m
←[90m at Function.executeUserEntryPoint as runMain←[39m
←[90m at node:internal/main/run_main_module:17:47←[39m {
code: ←[32m'MODULE_NOT_FOUND'←[39m,
requireStack: []
}

I have Node v16.14.2 and Python 2.7. I downloaded LavaLink. Copied the freyacodes application.yml. I made a new Spotify account. I created a MongoDB cluster. I setup my config file with the necessary IDs, tokens, and keys. I spent 3 hours trying to set this up, and what, I'm missing ONE GODDAMN FILE?! Thanks for the help, OP.