为了账号安全,请及时绑定邮箱和手机立即绑定

wackpack运行相关问题

wackpack运行相关问题

Flzz 2018-04-12 18:23:30
$ 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 babel-preset-es2015@6.24.1: ?  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.gameshop-fe@1.0.0 C:\Users\think\gameshop\doc\gameshop-fe+-- UNMET PEER DEPENDENCY webpack@1.15.0`-- webpack-cli@2.0.14npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})npm WARN webpack-cli@2.0.14 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失败还是怎么的?
查看完整描述

1 回答

?
Flzz

TA贡献1条经验 获得超0个赞

111

查看完整回答
反对 回复 2018-04-12
  • 1 回答
  • 0 关注
  • 3116 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信