internal/modules/cjs/loader.js:888
Nov 26 01:58:31 PM throw err;
Nov 26 01:58:31 PM ^
Nov 26 01:58:31 PM
Nov 26 01:58:31 PM Error: Cannot find module ‘express’
Nov 26 01:58:31 PM Require stack:
Nov 26 01:58:31 PM - /opt/render/project/src/server.js
Nov 26 01:58:31 PM at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
Nov 26 01:58:31 PM at Function.Module._load (internal/modules/cjs/loader.js:730:27)
Nov 26 01:58:31 PM at Module.require (internal/modules/cjs/loader.js:957:19)
Nov 26 01:58:31 PM at require (internal/modules/cjs/helpers.js:88:18)
Nov 26 01:58:31 PM at Object. (/opt/render/project/src/server.js:1:17)
Nov 26 01:58:31 PM at Module._compile (internal/modules/cjs/loader.js:1068:30)
Nov 26 01:58:31 PM at Object.Module._extensions…js (internal/modules/cjs/loader.js:1097:10)
Nov 26 01:58:31 PM at Module.load (internal/modules/cjs/loader.js:933:32)
Nov 26 01:58:31 PM at Function.Module._load (internal/modules/cjs/loader.js:774:14)
Nov 26 01:58:31 PM at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) {
Nov 26 01:58:31 PM code: ‘MODULE_NOT_FOUND’,
Nov 26 01:58:31 PM requireStack: [ ‘/opt/render/project/src/server.js’ ]
Nov 26 01:58:31 PM }
Nov 26 01:58:31 PM npm ERR! code ELIFECYCLE
Nov 26 01:58:31 PM npm ERR! errno 1
Nov 26 01:58:31 PM npm ERR! 1connect-me@1.0.0 start: node server.js
Nov 26 01:58:31 PM npm ERR! Exit status 1
Nov 26 01:58:31 PM npm ERR!
Nov 26 01:58:31 PM npm ERR! Failed at the 1connect-me@1.0.0 start script.
Nov 26 01:58:31 PM npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Nov 26 01:58:31 PM
Nov 26 01:58:31 PM npm ERR! A complete log of this run can be found in:
Nov 26 01:58:31 PM npm ERR! /opt/render/.cache/_logs/2023-11-26T08_28_31_878Z-debug.log
please help me to solve this error this is github repo
(GitHub - 1hemant2/social)
Hi,
It sounds like you haven’t installed your dependencies. A common Node build command would be something like:
npm install
Or if your app requires a build script to be run, maybe it would be:
npm install && npm run build
Alan
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.