title: Is there a method to install peer dependencies of dependencies?
body: <p>On running npm install, we get this:</p>
  <pre><code>npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself
  </code></pre>
  <p>Our initial belief was that the issue was a need to install the peer dependency mentioned - <code>ajv</code> - but that has not fixed the problem.</p>
  <p>The important thing is simply understanding the issue. What does the error message even mean, given that we do have the dependencies satisfied AFAICT?</p>
  <p>package.json has this:</p>
  <pre><code>  &quot;dependencies&quot;: {
      &quot;ajv&quot;: &quot;^6.0.0&quot;
    },
  </code></pre>
  <p>package-lock.json has this:</p>
  <pre><code>    &quot;ajv&quot;: {
        &quot;version&quot;: &quot;6.2.1&quot;,
        &quot;resolved&quot;: &quot;https://registry.npmjs.org/ajv/-/ajv-6.2.1.tgz&quot;,
        &quot;integrity&quot;: &quot;sha1-KKarxJOiq+D7TIUHrK7bQ/pVBnE=&quot;,
        &quot;requires&quot;: {
          &quot;fast-deep-equal&quot;: &quot;1.1.0&quot;,
          &quot;fast-json-stable-stringify&quot;: &quot;2.0.0&quot;,
          &quot;json-schema-traverse&quot;: &quot;0.3.1&quot;
        }
      },
      &quot;ajv-keywords&quot;: {
        &quot;version&quot;: &quot;2.1.1&quot;,
        &quot;resolved&quot;: &quot;https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-2.1.1.tgz&quot;,
        &quot;integrity&quot;: &quot;sha1-YXmX/F9gV2iUxDX5QNgZ4TW4B2I=&quot;,
        &quot;dev&quot;: true
      }
  </code></pre>
  <p><code>npm-install-peers</code> gives</p>
  <pre><code>This package doesn't seem to have any peerDependencies
  </code></pre>
  <p>The maintainer of that tool says</p>
  <blockquote>
  <p>It's designed to install the direct peer dependencies of your project,
  not the peer dependencies of your dependencies</p>
  </blockquote>
  <p>which means the issue is a dependency deeper than the top level.</p>
  <p>Is there a tool to install the dependencies of dependencies?</p>