webpack 4.0 安装出现的小问题 (One CLI for webpack must be installed)

Posted 黑夜蓝天

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了webpack 4.0 安装出现的小问题 (One CLI for webpack must be installed)相关的知识,希望对你有一定的参考价值。

安装的webpack版本是4.11.0,运行命令npm start 提示:
One CLI for webpack must be installed. These are recommended choices, delivered as separate packages:

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 或者 webpack-command 即可





以上是关于webpack 4.0 安装出现的小问题 (One CLI for webpack must be installed)的主要内容,如果未能解决你的问题,请参考以下文章

one webpack study demo question

webpack 3.1 升级webpack 4.0

webpack 4.0 配置方法以及错误解决

webpack 4.0尝鲜

10天掌握webpack 4.0 图片篇 (1)

10天掌握webpack 4.0 优化篇 排除包含