title: Check versions in package json against actual node_modules
body: <p>Imagine the situation: </p>
  
  <p>We have a project with <code>node_modules</code> gitignored. While fixing a task <strong>developer1</strong> updated <code>package.json</code> to newer version of some module, e.g.</p>
  
  <pre><code>"dependencies": {
    "async": "^1.5.2", // was 1.5.1
    ...
  </code></pre>
  
  <p>Then he runned <code>npm install</code> locally to get updated module, performed tests, finished task and pushed changes on the server. </p>
  
  <p><strong>Developer2</strong> pulled changes from server and get app broken because still having previous version of <code>async</code> locally (1.5.1). And developer2 can waste a huge amount of time finding what's exactly goes wrong. Until they do <code>npm i</code>.</p>
  
  <p>Can you suggest any npm package or ready-to-use hook that can check versions in <code>package.json</code> against actual versions of <code>node_modules</code> ?  </p>
  
  <p>It will be really helpful!</p>
  
  <p>PS: I'm aware of <a href="https://www.npmjs.com/package/npm-check" rel="nofollow noreferrer">https://www.npmjs.com/package/npm-check</a> but it does not do what I need.</p>