webpack安装jquery报错

npm WARN webpack-cli@3.3.0 requires a peer of webpack@4.x.x but none is installed. You must install peer dependencies yourself.

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.8 (node_modules\fsevents):

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.8: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})


+ webpack-cli@3.3.0

updated 1 package and audited 2240 packages in 34.068s

found 1 low severity vulnerability

  run `npm audit fix` to fix them, or `npm audit` for details


已经正确安装了 webpack1.13.2

慕粉3422128
浏览 2221回答 1
1回答

pardon110

报错信息提醒,webpack-cli与webpack版本不兼容,如果你不会选版本,二者皆装最新版本,也就是不指定版本号安装就是了。
打开App,查看更多内容
随时随地看视频慕课网APP