I am working on a React webapp using webpack, loosely alongside this tutorial.
Accidentally, I added the node_modules folder to my git. I then removed it again using
For global installation : npm install webpack-dev-server -g
For local installation npm install --save-dev webpack
When you refer webpack in package.json file, it tries to look it in location node_modules\.bin\
After local installation, file wbpack will get created in location: \node_modules\.bin\webpack