<h3 dir="auto">Is there an existing issue for this?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li>
</ul>
<h3 dir="auto">Current Behavior</h3>
<p dir="auto"><code class="notranslate">npm i --save ...</code> removes related peer dependency.</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto"><code class="notranslate">npm i --save ...</code> does not remove peer dependencies.</p>
<h3 dir="auto">Steps To Reproduce</h3>
<p dir="auto">Existing package.json:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="  &quot;dependencies&quot;: {
    &quot;@my-org/my-pkg&quot;: &quot;^1.0.0&quot;
  },
  &quot;peerDependencies&quot;: {
    &quot;@my-org/my-pkg&quot;: &quot;^1.0.0&quot;,
    &quot;some-other-pkg&quot;: &quot;^2.3.4&quot;
  }"><pre class="notranslate">  <span class="pl-ent">"dependencies"</span>: {
    <span class="pl-ent">"@my-org/my-pkg"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.0.0<span class="pl-pds">"</span></span>
  },
  <span class="pl-ent">"peerDependencies"</span>: {
    <span class="pl-ent">"@my-org/my-pkg"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.0.0<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"some-other-pkg"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.3.4<span class="pl-pds">"</span></span>
  }</pre></div>
<p dir="auto">Running <code class="notranslate">npm i --save @my-org/my-pkg@1.0.1</code> results in the following package.json:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="  &quot;dependencies&quot;: {
    &quot;@my-org/my-pkg&quot;: &quot;^1.0.1&quot;
  },
  &quot;peerDependencies&quot;: {
    &quot;some-other-pkg&quot;: &quot;^2.3.4&quot;
  }"><pre class="notranslate">  <span class="pl-ent">"dependencies"</span>: {
    <span class="pl-ent">"@my-org/my-pkg"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.0.1<span class="pl-pds">"</span></span>
  },
  <span class="pl-ent">"peerDependencies"</span>: {
    <span class="pl-ent">"some-other-pkg"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.3.4<span class="pl-pds">"</span></span>
  }</pre></div>
<p dir="auto">Note that the peer dependency <code class="notranslate">"@my-org/my-pkg": "^1.0.1"</code> was removed during install.</p>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>OS: Manjaro 21.0.5</li>
<li>Node: 12.19.1</li>
<li>npm: 7.14.0</li>
</ul>
<h3 dir="auto">*Updated* as of 01/15/2021</h3>
<p dir="auto"><strong>Note: Please read <a href="https://github.com/npm/cli/wiki/%22cb()-never-called%3F-Exit-handler-never-called%3F-I'm-having-the-same-problem!%22">this doc</a> before filing a new issue.</strong></p>