Modules not found
an error occurs when I type in the command "nodemon"
node:internal/modules/cjs/loader:1148
throw err;
^
Error: Cannot find module 'C:\Users\affan\OneDrive\Desktop\discord bot\index.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
at Module._load (node:internal/modules/cjs/loader:986:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v20.15.0
[nodemon] app crashed - waiting for file changes before starting...
13 Replies
- 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 staffUnknown User•6mo ago
Message Not Public
Sign In & Join Server To View
mb then
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
wdym by file dosnt exist
i have the folder
for it
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
so how do i fix it
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
is it like a nodemon problem?
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
ohhh
ok
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
i see
okkk