Hello I am a user of a tool called discord bot Maker and after a wrong manipulation I pressed reset / reset default node modules instead of clicking on reset default node modules and since I find myself with this please help me (if the translation is bad I’m sorry I’m in auto-correct because I do not speak English)
(Here is the error that is marked)
node:internal/modules/cjs/loader:936
? throw err;
? ^
?
? Error: Cannot find module ‘discord.js’
? Require stack:
? - F:\tout les dossier\les truc important\les bots discord\AntiRaid\bot.js
? at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
? at Function.Module._load (node:internal/modules/cjs/loader:778:27)
? at Module.require (node:internal/modules/cjs/loader:999:19)
? at require (node:internal/modules/cjs/helpers:102:18)
? at Object. (F:\tout les dossier\les truc important\les bots discord\AntiRaid\bot.js:10:36)
? at Module._compile (node:internal/modules/cjs/loader:1097:14)
? at Object.Module._extensions…js (node:internal/modules/cjs/loader:1149:10)
? at Module.load (node:internal/modules/cjs/loader:975:32)
? at Function.Module._load (node:internal/modules/cjs/loader:822:12)
? at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) {
? code: ‘MODULE_NOT_FOUND’,
? requireStack: [
? ‘F:\tout les dossier\les truc important\les bots discord\AntiRaid\bot.js’
? ]
? }
?
? Node.js v17.4.0
?
the problem is that discord botmaker is a simple way to create discord bots without knowing how to code so myself I do not know where is my code moreover since it is a simple way and that one is not supposed to modify the code with naked hand therefore it arranges the code in any way
Your code is in F:\tout les dossier\les truc important\les bots discord\AntiRaid\ according to the error message. It should be a bunch of .js files and some .json files.
edit: not as a condescending thing, I swear. asking because I don’t know if using the command line is even a normal part of using the aforementioned program