title: node is unable to find module (even though it's installed)
body: <p>I'm writing a <a href="https://github.com/nealrs/cpupdate/tree/exp" rel="noreferrer">CLI utility</a> using the <a href="http://zombie.labnotes.org/" rel="noreferrer">zombie</a> headless browser package. </p>
  
  <p>Originally, I installed the dependencies locally as I needed them <code>npm install zombie foo bar</code> and the script worked just fine.</p>
  
  <p>But since writing the package.json everytime I try to install or run the script locally, I get this module error:</p>
  
  <pre class="lang-text prettyprint-override"><code>$ node index.js
  
  module.js:340
      throw err;
            ^
  Error: Cannot find module 'zombie'
      at Function.Module._resolveFilename (module.js:338:15)
      at Function.Module._load (module.js:280:25)
      at Module.require (module.js:364:17)
      at require (module.js:380:17)
      at Object.&lt;anonymous&gt; (/Users/neal/Downloads/cpupdate-exp/index.js:2:15)
      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)
  </code></pre>
  
  <p>This happens no matter how I try installing the packages. Which makes no sense. I can see them in my local <code>node_modules</code> directory &amp; everything. </p>
  
  <p><strong>So I guess my question is, is my package.json wrong or did I mess up my node installation somewhere along the way?</strong></p>
  
  <p>BTW, I also tried installing zombie fresh in a separate directory &amp; running a really simple script (below), but I get the same <code>Cannot find module</code> error.</p>
  
  <pre><code>var browser = require("zombie");
  var assert = require("assert");
  
  b = new browser();
  b.visit("http://nealshyam.com/", function () {
   assert.ok(browser.success);
   console.log(browser.text("title"));
  });
  </code></pre>
  
  <p>package.json:</p>
  
  <pre><code>{
    "author": "Neal Shyam",
    "name": "cpupdate",
    "version": "0.1.1",
    "description": "Update your ChallengePost Portfolio with node.js",
    "homepage": "http://challengepost.com/software/cpupdate",
    "license": "MIT",
    "bugs":{
      "url":"https://github.com/nealrs/cpupdate/issues",
      "email":"neal@challengepost.com"
    },
    "repository": {
      "type": "git",
      "url": "git@github.com:nealrs/cpupdate.git"
    },
    "bin": "./index.js",
    "keywords": [
      "ChallengePost",
      "update",
      "portfolio"
    ],
    "dependencies": {
      "zombie": "assaf/zombie",
      "assert": "defunctzombie/commonjs-assert",
      "open": "pwnall/node-open",
      "colors": "Marak/colors.js",
      "nomnom": "harthur/nomnom"
    },
    "preferGlobal": "true"
  }
  </code></pre>