[npm] webpack is not recognized as a internal or external command,operable program or batch file

I've had same issue and just added the code block into my package.json file;

 "scripts": {
   "build": "webpack -d --progress --colors"
 }

and then run command on terminal;

npm run build