title: Difference between `npm update` and `remove package-lock.json` plus `npm install`?
body: <p>What is essential difference between these commands, <strong>except that</strong> npm update modify package.json?</p>
  
  <pre><code>rm package-lock.json
  npm install
  </code></pre>
  
  <pre><code>npm update --dev
  </code></pre>