Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

server.js not available #32

Open
TechyMyster opened this issue Apr 8, 2022 · 1 comment
Open

server.js not available #32

TechyMyster opened this issue Apr 8, 2022 · 1 comment

Comments

@TechyMyster
Copy link

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

@AceKiron
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants