安装的webpack版本是4.9.1,webpack-cli版本号是2.1.4。运行webpack命令提示:
One CLI for webpack must be installed. These are recommended choices, delivered as separate packages:
webpack-cli (
https://github.com/webpack/we
…
The original webpack full-featured CLI.
webpack-command (
https://github.com/webpack-co
…
A lightweight, opinionated webpack CLI.
We will use “npm” to install the CLI via “npm install -D”.
Which one do you like to install (webpack-cli/webpack-command):
解决:
需要安装一个webpack-cli
npm install webpack-cli -g
就可以了
或者 npm install webpack-command -g (这个就没有测试了)
版权声明:本文为ken_ding原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。