webpack-bundle-analyzer is not working : <p>I run below command to create stats.json:</p>

<blockquote>
  <p>ng build --prod --stats-json</p>
</blockquote>

<p>After this I am executing below code:</p>

<blockquote>
  <p>webpack-bundle-analyzer dist/stats.json</p>
</blockquote>

<p>once I execute it I am receiving below error in my terminal:</p>

<blockquote>
  <p>'webpack-bundle-analyzer' is not recognized as an internal or external
  command, operable program or batch file.</p>
</blockquote>

<p>I have installed webpack-bundle-analyzer.</p>

<p>In Package.json file it's available </p>

<blockquote>
  <p>"webpack-bundle-analyzer": "^2.11.1"</p>
</blockquote>

<p>Please help me to resolve.</p>

<p>Note :  Stats.json is available in dist folder</p>
