I had installed it globally by running npm install webpack -g and I had included it in my project by running npm install webpack --save-dev.
However, on running the
You have a typo somewhere in your webpack.config.js file. Review your config file. Had similar problem and it was as a result of a typo.
webpack.config.js