Discord bot node.js currency system guide bot error



  • So I was making a discord bot and put in all the code for the discord currency system, when it failed to start I even copied and pasted the resulting code and it still failed, I put in everything so what is going wrong? The error is:

     Error: Cannot find module
    ←[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] (node:internal/modules/run_main:77:12)←[39m
    ←[90m    at node:internal/main/run_main_module:17:47←[39m {
      code: ←[32m'MODULE_NOT_FOUND'←[39m,
      requireStack: []
    }
    

    I don't know what to do at this point, google has been no help and I dont know what its even referring to.



  • You are missing a require() statement to import a dependency, or have forgotten to run npm install to install a dependency.

    When you post this on StackOverflow, please include the snippet of code that is causing this error.


    Update: Don't post it to StackOverflow. You'll likely be marked as a duplicate of https://stackoverflow.com/q/65758612/3505377 .

    A quick Google search for at node:internal/main/run_main_module MODULE_NOT_FOUND found that.


Log in to reply
 

Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2