Boa tarde,
Estou com o seguinte problema abaixo.. parece que nao está encontrando o import do express.
PS C:\Users\arthur.kou.da.silva> docker run -p 8080:3000 -v "C:\Users\arthur.kou.da.silva\Documents\alura\docker\volume-exemplo:/var/www" -w "/var/www" node npm start
> volume-exemplo@1.0.0 start /var/www
> node .
internal/modules/cjs/loader.js:1083
throw err;
^
Error: Cannot find module 'express'
Require stack:
- /var/www/index.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1080:15)
at Function.Module._load (internal/modules/cjs/loader.js:923:27)
at Module.require (internal/modules/cjs/loader.js:1140:19)
at require (internal/modules/cjs/helpers.js:75:18)
at Object.<anonymous> (/var/www/index.js:1:17)
at Module._compile (internal/modules/cjs/loader.js:1251:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1272:10)
at Module.load (internal/modules/cjs/loader.js:1100:32)
at Function.Module._load (internal/modules/cjs/loader.js:962:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/var/www/index.js' ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! volume-exemplo@1.0.0 start: `node .`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the volume-exemplo@1.0.0 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/2020-08-23T18_10_30_420Z-debug.log
PS C:\Users\arthur.kou.da.silva>
Alguém poderia me ajudar a resolver isso por favor?
Obrigado, Arthur