title: Package-lock json file modified without any dependency installation when npm install executed
body: <p>currently I have an issue.
  when I run the command <code>npm install</code>, the <code>package-lock.json</code> is executed unexpected formatting.</p>
  <p>As you can see below, the <code>requires</code> property is deleted after running <code>npm install</code>. Even no any package installation</p>
  <p>for example from this:</p>
  <pre><code> &quot;@react-native-community/masked-view&quot;: {
        &quot;version&quot;: &quot;0.1.10&quot;,
        &quot;resolved&quot;: &quot;foo&quot;,
        &quot;integrity&quot;: &quot;bar&quot;,
        &quot;requires&quot;: {}
      },
  </code></pre>
  <p>to this:</p>
  <pre><code>  &quot;@react-native-community/masked-view&quot;: {
        &quot;version&quot;: &quot;0.1.10&quot;,
        &quot;resolved&quot;: &quot;foo&quot;,
        &quot;integrity&quot;: &quot;bar&quot;
      },
  </code></pre>
  <p>However, this is not my wanted action, and because of it, every commit between me a colleague has difference.</p>
  <p>I would like this <code>auto formatting...?</code> won't work when I run <code>npm install</code></p>
  <p>Can anyone has an idea about this issue?</p>
  <p>This is my <code>.npmrc</code></p>
  <pre><code>legacy-peer-deps=true
  </code></pre>
  <p>npm version: v8.4.0</p>
  <p>node version: v14.17.0</p>