pm init --yes</code> from the command line. This will create a file called <code>package.json</code>.</p>
<pre><code class="lang-bash">npm init --yes
# creates a file called package.json
</code></pre>
<p>Then, to install Mithril, run:</p>
<pre><code class="lang-bash">npm install mithril --save
</code></pre>
<p>This will create a folder called <code>node_modules</code>, and a <code>mithril</code> folder inside of it. It will also add an entry under <code>dependencies</code> in the <code>package.json</code> f