I run below command to create stats.json:
ng build --prod --stats-json
After this I am executing below code:
webpack-bundle-analyzer dist/stats.json
once I execute it I am receiving below error in my terminal:
'webpack-bundle-analyzer' is not recognized as an internal or external command, operable program or batch file.
I have installed webpack-bundle-analyzer.
In Package.json file it's available
"webpack-bundle-analyzer": "^2.11.1"
Please help me to resolve.
Note : Stats.json is available in dist folder