Ask coding questions

← Back to all posts
Using Node.js to code a discord bot and need help

I am following a tutorial (
on how to make a discord bot, but I have everything ready, and it's just saying:

throw err;

Error: ENOENT: no such file or directory, open '/home/runner/Zards-40/index.js'
at Object.openSync (fs.js:462:3)
at Object.readFileSync (fs.js:364:35)
at Object.<anonymous> (/run_dir/interp.js:195:19)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Function.executeUserEntryPoint as runMain
at internal/main/run_main_module.js:17:47 {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: '/home/runner/Zards-40/index.js'
repl process died unexpectedly: exit status 1