Cannot run node.js

Below is the error I’m getting when running node index.js “node:internal/modules/cjs/loader:1252 throw err; ^ Error: Cannot find module './config.json' Require stack: - C:\Users\jay\Documents\discord-bot\index.js at Function._resolveFilename (node:internal/modules/cjs/loader:1249:15) at Function._load (node:internal/modules/cjs/loader:1075:27) at TracingChannel.traceSync (node:diagnostics_channel:315:14) at wrapModuleLoad (node:internal/modules/cjs/loader:218:24) at Module.require (node:internal/modules/cjs/loader:1340:12) at require (node:internal/modules/helpers:141:16) at Object.<anonymous> (C:\Users\jay\Documents\discord-bot\index.js:3:19) at Module._compile (node:internal/modules/cjs/loader:1546:14) at Object..js (node:internal/modules/cjs/loader:1689:10) at Module.load (node:internal/modules/cjs/loader:1318:32) { code: 'MODULE_NOT_FOUND', requireStack: [ 'C:\Users\jay\Documents\discord-bot\index.js' ] } Node.js v22.11.0”
No description
3 Replies
d.js toolkit
d.js toolkit4w ago
- 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 OP
Mark
Mark4w ago
this is not related to d.js, your path to the config.js file is incorrect. please see #other-js-ts
justjay9089
justjay9089OP4w ago
No description
Want results from more Discord servers?
Add your server