title: How to specify local modules as npm package dependencies
body: <p>I have an application which has the usual set of dependencies on third party modules (e.g. 'express') specified in the package.json file under dependencies. E.g.</p>
  <pre><code>&quot;express&quot;     : &quot;3.1.1&quot;
  </code></pre>
  <p>I would like to structure my own code modularly and have a set of local (meaning on the file system I am currently in) modules be installed by the package.json. I know that I can install a local module by running:</p>
  <pre><code>npm install path/to/mymodule
  </code></pre>
  <p>However, I don't know how to make this happen via the package.json dependencies structure. Using the <code>--save</code> option in this command is simply putting <code>&quot;mymodule&quot;: &quot;0.0.0&quot;</code> into my package.json (doesn't reference the filepath location). If i then remove the installed version from node_modules, and try to re-install from the package.json, it fails (because it looks for &quot;mymodule&quot; in the central registry, and doesn't look locally).</p>
  <p>I'm sure the is a way of telling the <code>&quot;dependencies&quot;: {}</code> structure that I want it to be installed from a file system path, but don't know how.</p>
  <p>Anyone else had this problem?
  Thanks.</p>