$ webpack ./src/page/index/index.js ./dist/app.jsThe CLI moved into a separate package: webpack-cliWould you like to install webpack-cli? (That will run npm install -D webpack-cli) (yes/NO)yesnpm 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 [email protected] C:\Users\think\gameshop\doc\gameshop-fe+-- UNMET PEER DEPENDENCY [email protected]`-- [email protected] WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (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"})npm WARN [email protected] requires a peer of webpack@^4.0.0 but none was installed.{ Error: Cannot find module 'webpack-cli'? ? at Function.Module._resolveFilename (module.js:470:15)? ? at Function.Module._load (module.js:418:25)? ? at Module.require (module.js:498:17)? ? at require (internal/module.js:20:19)? ? at runCommand.then.result (C:\Users\think\AppData\Roaming\npm\node_modules\webpack\bin\webpack.js:62:14)? ? at process._tickCallback (internal/process/next_tick.js:103:7) code: 'MODULE_NOT_FOUND' }求教,怎么解決?是安裝cli失敗還是怎么的?
wackpack運行相關問題
Flzz
2018-04-12 18:23:30