Webpack prompt that both webpack-cli and webpack-command are installed

You have installed webpack-cli and webpack-command together. To work with the "webpack" command you need only one CLI package, please remove one of them or use them directly via their binary.

After all

has been removed, I have re-executed npm install webpack-- save
and still prompted the above English. What"s going on? I don"t have webpack-cli or webpack-command installed.
does any old driver know how to solve it?

May.22,2021

the above problem no longer occurs when using webpack3.


just delete one
npm remove webpack-cli or npm remove webpack-command, try npn remove-- global webpack-cli

Menu