{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/generator-code/issues/5","labels_url":"https://api.github.com/repos/Microsoft/generator-code/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/generator-code/issues/5/comments","events_url":"https://api.github.com/repos/Microsoft/generator-code/issues/5/events","html_url":"https://github.com/Microsoft/generator-code/issues/5","id":106287331,"number":5,"title":"keep getting error Cannot find module 'yeoman-generator'","user":{"login":"sd86","id":2802214,"avatar_url":"https://avatars.githubusercontent.com/u/2802214?v=3","gravatar_id":"","url":"https://api.github.com/users/sd86","html_url":"https://github.com/sd86","followers_url":"https://api.github.com/users/sd86/followers","following_url":"https://api.github.com/users/sd86/following{/other_user}","gists_url":"https://api.github.com/users/sd86/gists{/gist_id}","starred_url":"https://api.github.com/users/sd86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sd86/subscriptions","organizations_url":"https://api.github.com/users/sd86/orgs","repos_url":"https://api.github.com/users/sd86/repos","events_url":"https://api.github.com/users/sd86/events{/privacy}","received_events_url":"https://api.github.com/users/sd86/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-14T07:41:22Z","updated_at":"2015-09-14T22:53:18Z","closed_at":null,"body":"I've install nvm and using version v0.12.7. The installation of yo, generator-code succeeds just fine. But everytime I run 'yo code', I get Cannot find module 'yeoman-generator'. Please help."},"comment":{"url":"https://api.github.com/repos/Microsoft/generator-code/issues/comments/140227755","html_url":"https://github.com/Microsoft/generator-code/issues/5#issuecomment-140227755","issue_url":"https://api.github.com/repos/Microsoft/generator-code/issues/5","id":140227755,"user":{"login":"sd86","id":2802214,"avatar_url":"https://avatars.githubusercontent.com/u/2802214?v=3","gravatar_id":"","url":"https://api.github.com/users/sd86","html_url":"https://github.com/sd86","followers_url":"https://api.github.com/users/sd86/followers","following_url":"https://api.github.com/users/sd86/following{/other_user}","gists_url":"https://api.github.com/users/sd86/gists{/gist_id}","starred_url":"https://api.github.com/users/sd86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sd86/subscriptions","organizations_url":"https://api.github.com/users/sd86/orgs","repos_url":"https://api.github.com/users/sd86/repos","events_url":"https://api.github.com/users/sd86/events{/privacy}","received_events_url":"https://api.github.com/users/sd86/received_events","type":"User","site_admin":false},"created_at":"2015-09-14T22:53:18Z","updated_at":"2015-09-14T22:53:18Z","body":"I realized that yo was looking for the generators in the npm modules directory of the system installed node. I had started using nvm and switched to v0.12.0 but yo would still look for npm modules at the wrong place. I am not sure how it was getting to that path but I fixed the issue by simply deleting the system node's modules directory. Please let me know how the node module paths are resolved and where they live. Thank you for looking into this. I'm new to node, just started learning."}}