npm install doesn't save dependency to package.json : <p>It does add only when I execute: <code>npm install &lt;package_name&gt; --save</code></p>

<p>In the documentation though: <a href="https://docs.npmjs.com/cli/install" rel="noreferrer">https://docs.npmjs.com/cli/install</a> is written this: </p>

<blockquote>
  <p>By default, npm install will install all modules listed as dependencies in package.json.</p>
</blockquote>

<p>Which is misleading. </p>
