Ask coding questions

← Back to all posts
Why it is telling me: exit code 1?
babicbartol

Can you answer me hwo to fix: 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

Answered by SixBeeps [earned 5 cycles]
View Answer
Voters
babicbartol
Comments
hotnewtop
SixBeeps

You need to configure the .replit file to run bot.js

https://docs.replit.com/programming-ide/configuring-run-button

babicbartol

What about this? internal/fs/utils.js:269
throw err;
^

Error: ENOENT: no such file or directory, open '/home/runner/ContentInfantileMacro/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/ContentInfantileMacro/index.js'
}
repl process died unexpectedly: exit status 1
.replit: Parse error on line unable to decode .replit: Near line 1 (last key parsed 'at'): expected key separator '=', but got 'M' instead