title: How to do `npm update` without modifying package.json?
body: <p>I have couple of dependencies that they always need to be on the latest specific major version. So I added them to the package.json dependencies list like below:</p>
  <pre><code>{
  ...
    dependencies: {
      &quot;A&quot;: &quot;^12.0.0&quot;,
      &quot;B&quot;: &quot;^12.0.0&quot;,
      &quot;C&quot;: &quot;^12.0.0&quot;,
      ...
  </code></pre>
  <p>Lets say in <em>package-lock.json</em>, package <strong>B</strong> has version 12.2.2. A new version of package <strong>B</strong> arrives with version 12.3.0 and no updates for other packages exist.</p>
  <p>When I do <code>npm update</code> the <em>package.json</em> file changes to below:</p>
  <pre><code>{
  ...
    dependencies: {
      &quot;A&quot;: &quot;^12.0.0&quot;,
      &quot;B&quot;: &quot;12.3.0&quot;,
      &quot;C&quot;: &quot;^12.0.0&quot;,
      ...
  </code></pre>
  <p>I don't want that to happen. I want <em>package-lock.json</em> and <em>node_modules</em> gets updated but package.json stays the same for package <strong>B</strong>.</p>
  <p>I tried <code>npm update --no-save</code>, but that would only update <em>node_modules</em> and not the <em>package-lock.json</em>.</p>
  <p>How can I achieve that?</p>