projeto@1.0.0 dev C:\Users\User\Desktop\projeto cross-env NODE_ENV=development webpack-dev-server --open --hot
The CLI moved into a separate package: webpack-cli Please install 'webpack-cli' in addition to webpack itself to use the CLI -> When using npm: npm i -D webpack-cli -> When using yarn: yarn add -D webpack-cli internal/modules/cjs/loader.js:888 throw err; ^
Error: Cannot find module 'webpack-cli/bin/config-yargs' Require stack:
- C:\Users\User\Desktop\projeto\node_modules\webpack-dev-server\bin\webpack-dev-server.js
at Function.Module.resolveFilename (internal/modules/cjs/loader.js:885:15)
at Function.Module.load (internal/modules/cjs/loader.js:730:27)
at Module.require (internal/modules/cjs/loader.js:957:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (C:\Users\User\Desktop\projeto\node_modules\webpack-dev-server\bin\webpack-dev-server.js:65:1)
at Module.compile (internal/modules/cjs/loader.js:1068:30)
at Object.Module.extensions..js (internal/modules/cjs/loader.js:1097:10)
at Module.load (internal/modules/cjs/loader.js:933:32)
at Function.Module.load (internal/modules/cjs/loader.js:774:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/runmain.js:72:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\Users\User\Desktop\projeto\node_modules\webpack-dev-server\bin\webpack-dev-server.js'
]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! projeto@1.0.0 dev:
cross-env NODE_ENV=development webpack-dev-server --open --hot
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the projeto@1.0.0 dev 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! C:\Users\User\AppData\Roaming\npm-cache_logs\2021-06-17T17_56_08_366Z-debug.log