title: Error: Cannot find module 'nan'
body: <p>I'm working on native Node.js addon and following <a href="https://github.com/nodejs/nan#usage" rel="noreferrer">nan docs</a></p>
  
  <p>I included nan into binding.gyp like:
  <code>"include_dirs" : [ "&lt;!(node -e \"require('nan')\")" ]</code></p>
  
  <p>Also nan is in npm dependencies.</p>
  
  <p>But when I install the package inside the another node module node-gyp is failed with error</p>
  
  <pre><code>&gt; nnb@1.0.2 install /Users/Shopgate/sandbox/stress/node_modules/nnb
  &gt; node-gyp rebuild
  
  module.js:338
      throw err;
            ^
  Error: Cannot find module 'nan'
      at Function.Module._resolveFilename (module.js:336:15)
      at Function.Module._load (module.js:278:25)
      at Module.require (module.js:365:17)
      at require (module.js:384:17)
      at [eval]:1:1
      at Object.exports.runInThisContext (vm.js:74:17)
      at Object.&lt;anonymous&gt; ([eval]-wrapper:6:22)
      at Module._compile (module.js:460:26)
      at evalScript (node.js:431:25)
      at startup (node.js:90:7)
  gyp: Call to 'node -e "require('nan')"' returned exit status 1. while trying to load binding.gyp
  </code></pre>