Webpack4.X installation webpack-cli error problem

problem description

I have installed webpack-cli, globally when using webpack4, but when I check the webpack version number, I still see
One CLI for webpack must be installed. These are recommended choices, deliveredas separate packages:

We will use "npm" to install the CLI via "npm install-D".
Do you want to install "webpack-cli" (yes/no):

then select yes

{Error: Cannot find module "webpack-cli"

at Function.Module._resolveFilename (internal/modules/cjs/loader.js:603:15)
at Function.Module._load (internal/modules/cjs/loader.js:529:25)
at Module.require (internal/modules/cjs/loader.js:659:17)
at require (internal/modules/cjs/helpers.js:22:18)
at runCommand.then (C:\Users\Mechrevo\AppData\Roaming\npm\node_global\node_modules\webpack\bin\webpack.js:142:5)
at process.internalTickCallback (internal/process/next_tick.js:77:7) code: "MODULE_NOT_FOUND" }

it still doesn"t fit. I want to ask the bosses to tell me how to solve this. I"ve deleted it all and tried to reinstall it globally. It"s the same

.
Feb.14,2022

have you installed webpack or not? if you don't install it, only webpack-cli will be useless

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3acdc-2c248.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3acdc-2c248.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?