Internal/modules/cjs/loader.js:888

I can’t get the site deployed it throws this error:

Nov 24 04:46:46 PM  ==> Starting service with 'node app.js'
Nov 24 04:46:46 PM  internal/modules/cjs/loader.js:888
Nov 24 04:46:46 PM    throw err;
Nov 24 04:46:46 PM    ^
Nov 24 04:46:46 PM  
Nov 24 04:46:46 PM  Error: Cannot find module '/opt/render/project/src/app.js'
Nov 24 04:46:46 PM      at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
Nov 24 04:46:46 PM      at Function.Module._load (internal/modules/cjs/loader.js:730:27)
Nov 24 04:46:46 PM      at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
Nov 24 04:46:46 PM      at internal/main/run_main_module.js:17:47 {
Nov 24 04:46:46 PM    code: 'MODULE_NOT_FOUND',
Nov 24 04:46:46 PM    requireStack: []
Nov 24 04:46:46 PM  }
Nov 24 04:46:54 PM  ==> Starting service with 'node app.js'
Nov 24 04:46:55 PM  internal/modules/cjs/loader.js:888
Nov 24 04:46:55 PM    throw err;
Nov 24 04:46:55 PM    ^

I tried setting npm install but i’m not sure if it’s ok.
image

Hi there,

Thanks for reaching out.

You don’t seem to be using any of those package.json scripts at the Start Command:

==> Starting service with 'node app.js'

Is there an app.js file at the root of your project repo?

Alan