title: node.js, mongoose and mongodb a pain to install :(
body: <p>I'm having trouble getting these 3 packages to install and work together.  Here are the steps I took:</p>
  
  <ol>
  <li>Installed nodejs 0.6.3 based on the instructions here for Linux (I downloaded the tar ball from the site as opposed to using the distro in git): <a href="https://github.com/joyent/node/wiki/Installation" rel="nofollow">https://github.com/joyent/node/wiki/Installation</a></li>
  <li>Installed npm using the onliner install found here: <a href="http://npmjs.org/" rel="nofollow">http://npmjs.org/</a></li>
  <li>Installed npm packages for mongodb, mongojs and mongoose.  All seem to install as expected.</li>
  <li><p>Created a small program to test and get the following exception:</p>
  
  <pre><code>Error: Cannot find module 'mongodb/bson'
  at Function._resolveFilename (module.js:334:11)
  at Function._load (module.js:279:25)
  at Module.require (module.js:357:17)
  at require (module.js:368:17)
  at Object.&lt;anonymous&gt; (/local/mnt/apps/node-v0.6.3/app.js:6:16)
  at Module._compile (module.js:432:26)
  at Object..js (module.js:450:10)
  at Module.load (module.js:351:31)
  at Function._load (module.js:310:12)
  at Array.0 (module.js:470:10)
  </code></pre></li>
  </ol>
  
  <p>bson.js appears under this directory for me: /opt/node/node_modules/mongodb/lib/mongodb/bson</p>
  
  <p>I've tried adjusting this line of code to match that and still no success:</p>
  
  <pre><code>var mongoose = require('mongoose').Mongoose,
  ObjectID = require('mongodb/bson').ObjectID;
  </code></pre>
  
  <p>Any idea what I might be doing wrong?  Just to clarify, do I need to build each npm install I downloaded or does npm do that?</p>
  
  <p>TIA!</p>