title: Node.js - Configuring $NODE_PATH with NVM
body: <p>On my way setting up <code>Node.js</code> with <code>NVM</code>, I stumbled upon an error when using <code>Yeoman</code>. I got 
  the error</p>
  
  <pre><code>Cannot find module 'yeoman-generator'
  </code></pre>
  
  <p>After some research I found <a href="https://stackoverflow.com/questions/12594541/npm-global-install-cannot-find-module">this post on StackOverflow</a>, which is also about my problem. Now I tried to do so, but the problem I have is, that I want to use different versions of Node.js over the system with the use of NVM. Now is it possible to change the $NODE_PATH dynamically, if the Node.js version changes with the help of NVM? Because my $NODE_PATH is empty at the moment (this is causing the problem).</p>
  
  <pre><code>$ which node
  /Users/dschmidt/.nvm/v0.10.35/bin/node
  $ which npm
  /Users/dschmidt/.nvm/v0.10.35/bin/npm
  $ echo $NODE_PATH
  [empty]
  </code></pre>
  
  <p>Would be glad about every answer I get about this. I searched the web for this, but could not find one post about this specifically.</p>