title: Webpack Peer Dependency Error in NPM When Webpack Is Installed
body: <p>I'm getting this error when running <code>webpack-dev-server</code> in npm:</p>
  <pre><code>webpack-dev-middleware@3.7.2 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
  </code></pre>
  <p>However, I already installed webpack. Here is my <code>package.json</code>. What am I missing?</p>
  <pre><code>{
    ...
    &quot;scripts&quot;: {
      &quot;watch&quot;: &quot;webpack-dev-server --progress --https&quot;
    },
    ...
    &quot;devDependencies&quot;: {
      &quot;webpack&quot;: &quot;^5.4.0&quot;,
      &quot;webpack-cli&quot;: &quot;^4.2.0&quot;,
      &quot;webpack-dev-server&quot;: &quot;^3.11.0&quot;
    }
  }
  </code></pre>