title: How to use npm installed requireJS for browser
body: <p>While <code>requirejs</code> is capable of using <a href="http://requirejs.org/docs/node.html#2">npm-installed modules</a>, how do I use <code>requirejs</code> in first place if itself is installed via <code>npm install requirejs</code>?</p>
  
  <p>I have read examples of using <code>requirejs</code> listed in the <a href="http://requirejs.org/docs/start.html#examples">example-section</a>. They all seems to assume <code>require.js</code> is downloaded into a specific location. Since the <a href="http://requirejs.org/docs/node.html#2">documentation</a> specifically said </p>
  
  <blockquote>
    <p>do not do something like require("./node_modules/foo/foo").</p>
  </blockquote>
  
  <p>I guess it is not right to put in <code>index.html</code> something like:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;script data-main="scripts" src="node_modules/requirejs/require.js"&gt;&lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;h1&gt;Hello World&lt;/h1&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>What is the recommended way to use requirejs if it is npm-installed? If I missed something from the documentation please let me know. Thank you</p>