17teen / Discord-Presser-Server-Nuker

Nuke Discord Bot in Js (Beta has arrived)
329 stars 373 forks source link

Cannot find module #59

Closed cryotheslayer closed 2 months ago

cryotheslayer commented 2 years ago

Error: Cannot find module '/home/gamers/nuke/index.js' at Module._resolveFilename (node:internal/modules/cjs/loader:939:15) at Module._load (node:internal/modules/cjs/loader:780:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: []

MemeGang8 commented 2 years ago

could be that your files have been flagged by windows check if they actually exist

Ximaz commented 2 years ago

node src/index.js

Enzoputra commented 1 year ago

node src/index.js

it still wont work? i type that in the terminal and still no luck whatsoever of fixing it

CODE-A-DUCK commented 1 year ago
  1. Check discord.js module ( make sure its discord.js@13.1.0 [ npm list and find discord.js ] TIPS: when installing type npm i discord.js@13.1.0)
  2. Check the code const { Client, Intents, MessageEmbed } = require("discord.js");
  3. I don't recommended index.js * config.json put in the folder