Olá, Estou com problemas para subir para o servidor. Sempre que rodo o comando npm start aparece o seguinte erro:
Error: Cannot find module 'webpack-cli/bin/config-yargs'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (/home/brunopgm/Documentos/tudo/alura/SPA/SPA-projeto/petshop/node_modules/webpack-dev-server/bin/webpack-dev-server.js:65:1)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! petshop-project@1.0.0 start: `webpack-dev-server --config ./webpack.config.js --mode development`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the petshop-project@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/brunopgm/.npm/_logs/2021-01-15T18_14_35_870Z-debug.log
Já tentei atualizar o webpack-cli, mas mesmo assim o erro continua. Pode me ajudar a identificar qual o motivo do erro?