title: How do I copy global modules between Node installations using nvm?
body: <p>I manage my Node installations using <code>nvm</code>. I installed the <code>grunt-cli</code> module globally in my previous installation of node. This allowed me to run the command <code>grunt</code> on in the terminal.</p>
  
  <p>When I installed a new version of Node (5.7.1), I got this error whenever I tried to execute the <code>grunt</code> command:</p>
  
  <blockquote>
    <p>zsh: command not found: grunt</p>
  </blockquote>
  
  <p>I discovered that the <code>grunt-cli</code> package had not been installed for the new version of Node.</p>
  
  <p>I could install the <code>grunt-cli</code> package again but I would prefer to do this automatically whenever a new version of Node is installed using <code>nvm</code>.</p>
  
  <p>Is there some way to install all the global modules from a previous version of Node when using <code>nvm</code> ?</p>