Como estan? estoy dando mis primeros pasos con webpackwebpack
y me encontre con un problema que no logro resolver, al intentar hacer el buildbuild de un archivo jsjs
, me tira el siguiente error:
Al darle yesyes comienza la instalacioninstalación, lo cual finaliza con el siguiente error:
npm WARN deprecated [email protected]: � Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
npm WARN deprecated [email protected]: Package no longer supported. Contact [email protected] for more info.
D:\_PROYECTOS\deploy
`-- [email protected]
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.1.2 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
{ Error: Cannot find module 'webpack-cli'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at runCommand.then.result (C:\Users\santa 64\AppData\Roaming\npm\node_modules\webpack\bin\webpack.js:62:14)
at process._tickCallback (internal/process/next_tick.js:109:7) code: 'MODULE_NOT_FOUND' }
npm WARN deprecated [email protected]: � Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update! npm WARN deprecated [email protected]: Package no longer supported. Contact [email protected] for more info. D:_PROYECTOS\deploy `-- [email protected]
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.1.2 (node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) { Error: Cannot find module 'webpack-cli' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at runCommand.then.result (C:\Users\santa 64\AppData\Roaming\npm\node_modules\webpack\bin\webpack.js:62:14) at process._tickCallback (internal/process/next_tick.js:109:7) code: 'MODULE_NOT_FOUND' }
Luego intento ejecutar nuevamente el comando de webpackwebpack
para hacer el buildbuild
peroPero nuevamente me tira el mismo error y no logro continuar Muchas gracias!.