title: While installing firebase-tools, NPM kept on giving dependency warnings despite they have been installed
body: <p>When I'm upgrading my <code>firebase-tools</code> from version 8.6.0 to 8.7.0 by running the command <code>sudo npm i -g firebase-tools</code> in my functions folder then I get these warnings:</p>
  <pre><code>npm WARN deprecated har-validator@5.1.5: this library is no longer supported
  /.npm/bin/firebase -&gt; /.npm/lib/node_modules/firebase-tools/lib/bin/firebase.js
  npm WARN ws@7.3.1 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself.
  npm WARN ws@7.3.1 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.
  </code></pre>
  <p>Then I tried to install the dependencies as requested. For example, for the <code>bufferutil</code>.
  I've tried these two install commands:</p>
  <pre><code>sudo npm install --save-dev bufferutil@^4.0.1
  </code></pre>
  <p>and</p>
  <pre><code>sudo npm install bufferutil@^4.0.1
  </code></pre>
  <p>Which both installs successfully with message like this:</p>
  <pre><code>&gt; bufferutil@4.0.1 install /_app/functions/node_modules/bufferutil
  &gt; node-gyp-build
  
  npm notice save bufferutil is being moved from dependencies to devDependencies
  + bufferutil@4.0.1
  updated 1 package in 7.06s
  
  29 packages are looking for funding
    run `npm fund` for details
  </code></pre>
  <p>I also did the same for <code>utf-8-validate@^5.0.2</code> and it gave the same success message.</p>
  <p>But when I run <code>firebase deploy --only functions</code> it tells me again to update to 8.7.0 no matter how many times I run the install command <code>sudo npm i -g firebase-tools</code> in the functions folder</p>
  <pre><code>╭───────────────────────────────────────────╮
  │                                           │
  │      Update available 8.6.0 → 8.7.0       │
  │   Run npm i -g firebase-tools to update   │
  │                                           │
  ╰───────────────────────────────────────────╯
  </code></pre>
  <p>So I tried to install the two dependencies again but then it gives the same message as the first one that it requires both the <code>bufferutil@^4.0.1</code> and <code>utf-8-validate@^5.0.2</code></p>
  <p>I'm not sure what am I missing here. It seems that it doesn't install although already installed.</p>
  <p>Here is my <code>package.json</code></p>
  <pre><code>{
    &quot;name&quot;: &quot;functions&quot;,
    &quot;description&quot;: &quot;Cloud Functions for Firebase&quot;,
    &quot;scripts&quot;: {
      &quot;serve&quot;: &quot;firebase emulators:start --only functions&quot;,
      &quot;shell&quot;: &quot;firebase functions:shell&quot;,
      &quot;start&quot;: &quot;npm run shell&quot;,
      &quot;deploy&quot;: &quot;firebase deploy --only functions&quot;,
      &quot;logs&quot;: &quot;firebase functions:log&quot;
    },
    &quot;engines&quot;: {
      &quot;node&quot;: &quot;10&quot;
    },
    &quot;dependencies&quot;: {
      &quot;firebase-admin&quot;: &quot;^8.10.0&quot;,
      &quot;firebase-functions&quot;: &quot;^3.9.1&quot;,
      &quot;pg&quot;: &quot;^8.3.0&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;bufferutil&quot;: &quot;^4.0.1&quot;,
      &quot;firebase-functions-test&quot;: &quot;^0.2.0&quot;,
      &quot;utf-8-validate&quot;: &quot;^5.0.2&quot;
    },
    &quot;private&quot;: true
  }
  </code></pre>