title: MongoDB - Error: Cannot find module '../build/Release/bson'
body: <p>I tried to run a typescript <a href="https://github.com/Microsoft/TypeScriptSamples/tree/master/imageboard" rel="nofollow">example</a> in the following way which caused following error:</p>
  
  <pre><code>$ mongod --dbpath /home/u/databases
  $ npm install
  $ tsc --sourcemap --module commonjs app.ts
  $ node app.js                             
  { [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }
  js-bson: Failed to load c++ bson extension, using pure JS version
  ========================================================================================
  =  Please ensure that you set the default write concern for the database by setting    =
  =   one of the options                                                                 =
  =                                                                                      =
  =     w: (value of &gt; -1 or the string 'majority'), where &lt; 1 means                     =
  =        no write acknowledgement                                                       =
  =     journal: true/false, wait for flush to journal before acknowledgement             =
  =     fsync: true/false, wait for flush to file system before acknowledgement           =
  =                                                                                      =
  =  For backward compatibility safe is still supported and                              =
  =   allows values of [true | false | {j:true} | {w:n, wtimeout:n} | {fsync:true}]      =
  =   the default value is false which means the driver receives does not                =
  =   return the information of the success/error of the insert/update/remove            =
  =                                                                                      =
  =   ex: new Db(new Server('localhost', 27017), {safe:false})                           =
  =                                                                                      =
  =   http://www.mongodb.org/display/DOCS/getLastError+Command                           =
  =                                                                                      =
  =  The default of no acknowledgement will change in the very near future                =
  =                                                                                      =
  =  This message will disappear when the default safe is set on the driver Db           =
  ========================================================================================
  
  /home/u/tmp/TypeScriptSamples/imageboard/app.js:9
  app.configure(function () {
      ^
  TypeError: Object function (req, res, next) {
      app.handle(req, res, next);
    } has no method 'configure'
      at Object.&lt;anonymous&gt; (/home/u/tmp/TypeScriptSamples/imageboard/app.js:9:5)
      at Module._compile (module.js:456:26)
      at Object.Module._extensions..js (module.js:474:10)
      at Module.load (module.js:356:32)
      at Function.Module._load (module.js:312:12)
      at Function.Module.runMain (module.js:497:10)
      at startup (node.js:119:16)
      at node.js:929:3
  </code></pre>
  
  <p>Furthermore, looking at db.ts I think <code>http</code> and <code>url</code> are missing in <code>package.json</code> file, am I right?</p>
  
  <p>How is it possible to fix the above error with mongodb?</p>