场景
安装webpack的时候 遇到的情况; 直接按照提示安装 提示Module webpack-cli 不存在
One CLI for webpack must be installed. These are recommended choices, delivered as separate packages:
- webpack-cli (https://github.com/webpack/webpack-cli)
The original webpack full-featured CLI.
- webpack-command (https://github.com/webpack-contrib/webpack-command)
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):
解决
npm install webpack-cli -g
本文详细介绍了在安装Webpack过程中遇到的CLI不存在的问题,并提供了具体的解决方案。通过使用npm install webpack-cli -g命令,可以成功安装所需的Webpack CLI,使Webpack能够正常运行。
3万+

被折叠的 条评论
为什么被折叠?



