I’m making a guilded bot and this error appears each time I’m running it. Here’s what Node.JS prints out:
node:internal/modules/cjs/loader:452
throw err;
^
Error: Cannot find module 'C:UsersasusDesktopAppsCodingsPROJECTSGUILDED BOTindex.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:444:19)
at Module._findPath (node:internal/modules/cjs/loader:715:18)
at resolveMainPath (node:internal/modules/run_main:26:23)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:24)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
path: 'C:\Users\asus\Desktop\Apps\Codings\PROJECTS\GUILDED BOT\package.json',
requestPath: 'C:\Users\asus\Desktop\Apps\Codings\PROJECTS\GUILDED BOT'
}
Node.js v20.11.1
I tried the steps from this link to fix it but to no avail: https://www.freecodecamp.org/news/error-cannot-find-module-node-npm-error-solved/