LenTrex
1
I’m trying to deploy a app and its saying “Running ‘node index.js’” for 20 minutes. It used to work before fast but now it’s not. Why?
==> Uploading build...
==> Build uploaded in 7s
==> Build successful 🎉
==> Deploying...
==> Using Node version 20.11.1 (default)
==> Docs on specifying a Node version: https://render.com/docs/node-version
==> Running 'node index.js'
LenTrex
2
Ok, it said “missing http ports” after a while, so I used express but now it says this:
node:internal/modules/cjs/loader:1147
throw err;
^
Error: Cannot find module 'express'
Require stack:
- /opt/render/project/src/index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
at Module._load (node:internal/modules/cjs/loader:985:27)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (/opt/render/project/src/index.js:7:17)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/opt/render/project/src/index.js' ]
}
except I literally do have the module express in my github repository, what now?
Edit: Nevermind, it wasnt listed as a dependency in my package.json, its all fixed now
system
Closed
3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.