automod-bot icon indicating copy to clipboard operation
automod-bot copied to clipboard

server.js not available

Open TechyMyster opened this issue 2 years ago • 1 comments

internal/modules/cjs/loader.js:905 throw err; ^

Error: Cannot find module '/home/runner/automod-bot/server.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15) at Function.Module._load (internal/modules/cjs/loader.js:746:27) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) at internal/main/run_main_module.js:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] start: node server.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/runner/.npm/_logs/2022-04-08T22_37_32_233Z-debug.log

TechyMyster avatar Apr 08 '22 22:04 TechyMyster

The package.json and package-lock.json most likely originated from an ExpressJS server, as it is even called hello-express. Try changing server.js to index.js.

AceKiron avatar Apr 26 '22 12:04 AceKiron