title: local yeoman generator not found by yo
body: <p>I created a new yeoman generator</p>
  
  <pre><code>'use strict';
  
  var generators = require('yeoman-generator');
  
  module.exports = generators.Base.extend({
    method1: function() {
      this.log('Hello, World!');
    }
  });
  </code></pre>
  
  <p>My <code>package.json</code></p>
  
  <pre><code>{
    "name": "generator-mygenerator",
    "version": "1.0.0",
    "description": "",
    "main": "index.js",
    "scripts": {
      "test": "echo \"Error: no test specified\" &amp;&amp; exit 1"
    },
    "author": "Alexander Zeitler",
    "license": "ISC",
    "dependencies": {
      "yeoman-generator": "^0.22.5"
    }
  }
  </code></pre>
  
  <p>Then I ran <code>npm link</code></p>
  
  <p>When calling <code>yo mygenerator</code> I get this error:</p>
  
  <pre><code>Error mygenerator 
  
  You don't seem to have a generator with the name mygenerator installed.
  You can see available generators with npm search yeoman-generator and then install them with npm install [name].
  To see the 1 registered generators run yo with the `--help` option.
  </code></pre>
  
  <p>I also tried <code>npm link generator-mygenerator</code>.</p>
  
  <p>Node.js version <code>4.2.3</code> and npm version <code>3.7.5</code>.
  I installed Node.js using <code>nvm</code></p>
  
  <p><code>yo doctor</code> results in this:</p>
  
  <pre><code>Yeoman Doctor
  Running sanity checks on your system
  
  ✔ Global configuration file is valid
  ✔ Node.js version
  ✔ No .bowerrc file in home directory
  ✔ No .yo-rc.json file in home directory
  ✔ npm version
  ✔ NODE_PATH matches the npm root
  
  Everything looks all right!
  </code></pre>