How to init webpack-dev-server in container docker?
I tried to solve this issue finding in google and I don't get any answer, help me please.
kommu_front |
kommu_front | > base@1.0.0 start /usr/src/app
kommu_front | > webpack-dev-server --port 3000 --host 0.0.0.0 --config ./webpack.config.js --mode development
kommu_front |
kommu_front | sh: 1: webpack-dev-server: not found
kommu_front | npm ERR! file sh
kommu_front | npm ERR! code ELIFECYCLE
kommu_front | npm ERR! errno ENOENT
kommu_front | npm ERR! syscall spawn
kommu_front | npm ERR! base@1.0.0 start: `webpack-dev-server --port 3000 --host 0.0.0.0 --config ./webpack.config.js --mode development`
kommu_front | npm ERR! spawn ENOENT
kommu_front | npm ERR!
kommu_front | npm ERR! Failed at the base@1.0.0 start script.
kommu_front | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
kommu_front | npm WARN Local package.json exists, but node_modules missing, did you mean to install?
kommu_front |
kommu_front | npm ERR! A complete log of this run can be found in:
kommu_front | npm ERR! /root/.npm/_logs/2019-01-20T17_53_08_818Z-debug.log