title: What is the equivalent of "npm install <package_name> --save" in Yarn?
body: <p>I am using <a href="https://www.npmjs.com/package/yarn" rel="noreferrer">Yarn</a> to install the dependencies of my project. What is the equivalent of &quot;npm install &lt;package_name&gt; --save &quot; in Yarn to update the entry in my <code>package.json</code> file? I can use &quot;npm install &lt;package_name&gt; --save &quot; here, but I want to use Yarn as much as possible to improve performance and avoid confusion between npm and Yarn.</p>