Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem running docker container #2

Open
h3sdev opened this issue May 21, 2023 · 0 comments
Open

problem running docker container #2

h3sdev opened this issue May 21, 2023 · 0 comments

Comments

@h3sdev
Copy link

h3sdev commented May 21, 2023

When I run the "docker-compose up -build" I got this error the node app can't find express. on the terminal.

server_1 |
server_1 | > server@1.0.0 start /server
server_1 | > node index.js
server_1 |
server_1 | internal/modules/cjs/loader.js:934
server_1 | throw err;
server_1 | ^
server_1 |
server_1 | Error: Cannot find module 'express'
server_1 | Require stack:
server_1 | - /server/app.js
server_1 | - /server/index.js
server_1 | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:931:15)
server_1 | at Function.Module._load (internal/modules/cjs/loader.js:774:27)
server_1 | at Module.require (internal/modules/cjs/loader.js:1003:19)
server_1 | at require (internal/modules/cjs/helpers.js:107:18)
server_1 | at Object. (/server/app.js:1:17)
server_1 | at Module._compile (internal/modules/cjs/loader.js:1114:14)
server_1 | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
server_1 | at Module.load (internal/modules/cjs/loader.js:979:32)
server_1 | at Function.Module._load (internal/modules/cjs/loader.js:819:12)
server_1 | at Module.require (internal/modules/cjs/loader.js:1003:19) {
server_1 | code: 'MODULE_NOT_FOUND',
server_1 | requireStack: [ '/server/app.js', '/server/index.js' ]
server_1 | }
server_1 | npm ERR! code ELIFECYCLE
server_1 | npm ERR! errno 1
server_1 | npm ERR! server@1.0.0 start: node index.js
server_1 | npm ERR! Exit status 1
server_1 | npm ERR!
server_1 | npm ERR! Failed at the server@1.0.0 start script.
server_1 | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
server_1 | npm WARN Local package.json exists, but node_modules missing, did you mean to install?
server_1 |
server_1 | npm ERR! A complete log of this run can be found in:
server_1 | npm ERR! /root/.npm/_logs/2023-05-21T05_08_24_115Z-debug.log
server_1 | maingate_server_1 exited with code 1

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

No branches or pull requests

1 participant