You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to run the container after building it with the Dockerfile provided, I get the following error related to the express module:
> iqbit@1.0.1 server-docker-start /usr/src/node-app
> cd server && npm run serve:docker
> standalone-iqbit-server@1.0.0 serve:docker /usr/src/node-app/server
> node server.js
internal/modules/cjs/loader.js:905
throw err;
^
Error: Cannot find module 'express'
Require stack:
- /usr/src/node-app/server/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 Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:101:18)
at Object.<anonymous> (/usr/src/node-app/server/server.js:1:17)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/usr/src/node-app/server/server.js' ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! standalone-iqbit-server@1.0.0 serve:docker: `node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the standalone-iqbit-server@1.0.0 serve:docker script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-08-26T20_49_40_425Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! iqbit@1.0.1 server-docker-start: `cd server && npm run serve:docker`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the iqbit@1.0.1 server-docker-start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-08-26T20_49_40_441Z-debug.log
The text was updated successfully, but these errors were encountered:
When trying to run the container after building it with the Dockerfile provided, I get the following error related to the express module:
The text was updated successfully, but these errors were encountered: