Dwelt
February 12, 2023, 9:55am
1
Hello , while using nodemon , console showed up this problem,
Error: Cannot find module ‘C:\Users\Adam\Desktop\sps-bot\index.js’
at Module._resolveFilename (node:internal/modules/cjs/loader:1047:15)
at Module._load (node:internal/modules/cjs/loader:893:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
code: ‘MODULE_NOT_FOUND’,
requireStack:
}
Node.js v18.14.0
[nodemon] app crashed - waiting for file changes before starting…
what should i do ?
_tr
February 13, 2023, 2:38pm
2
Seems like you don’t have the module specified on the error log. You need to make sure it exists, and if it does that’s certainly strange. That module, by the error log, should be in your desktop / folder sps-bot / file index.js
wh0
February 13, 2023, 6:27pm
3
nah I think that whole path was the module it was trying to find
dwelt, can you confirm that that file really exists?
ABUCKY
February 13, 2023, 7:39pm
4
As @wh0 said, verify the path is correct
_tr
February 13, 2023, 7:41pm
5
Yes that’s what I was trying to say
1 Like
system
Closed
August 12, 2023, 7:41pm
6
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.