The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
Webpack is always asking me to install its cli and it throws error when i run npm run build, even when i have installed it like 5000 times, it still shows me the same error
One CLI for webpack must be installed. These are recommended choi
ces, delivered as separate packages:
You need to install ‘webpack-cli’ to use webpack via CLI.
You can also install the CLI manually.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! firstname.lastname@example.org build:
webpack app.js dist/bundle.js
npm ERR! Exit status 1
npm ERR! Failed at the email@example.com build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/femi/.npm/_logs/2019-10-08T10_51_53_256Z-debug.log
What command are you (unsuccessfully) running to install the webpack cli?