title: How do I use yarn to manage client dependencies?
body: <p>I am moving towards managing client side dependencies using yarn and npm and I can't wrap my head around how to use these dependencies in my web site.</p>
  <p>So far I have installed the necessary dependencies (i.e. ngeohash) using <code>yarn add</code>. I can see the dependency the node-modules directory.</p>
  <p>My problem is that I have a web page (index.html) where I am going to display a map from a geohashes returned from an ajax request. However, the entry point for the application is index.js. I don't understand why that is. I see examples using require but when I add the following to my <code>&lt;script&gt;</code> element in index.html:</p>
  <pre><code>var geohash = require('ngeohash');
  </code></pre>
  <p>I get this error:</p>
  <pre><code>ReferenceError: Can't find variable: require
  </code></pre>
  <p>I've looked at the getting started tutorial but nowhere does it show one how to use the dependencies once they are installed! What am I doing wrong?</p>