{"action":"created","issue":{"url":"https://api.github.com/repos/intel-android/androidhub/issues/42","labels_url":"https://api.github.com/repos/intel-android/androidhub/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/intel-android/androidhub/issues/42/comments","events_url":"https://api.github.com/repos/intel-android/androidhub/issues/42/events","html_url":"https://github.com/intel-android/androidhub/issues/42","id":108554588,"number":42,"title":"Error: Cannot find module 'inquirer'","user":{"login":"blundell","id":655860,"avatar_url":"https://avatars.githubusercontent.com/u/655860?v=3","gravatar_id":"","url":"https://api.github.com/users/blundell","html_url":"https://github.com/blundell","followers_url":"https://api.github.com/users/blundell/followers","following_url":"https://api.github.com/users/blundell/following{/other_user}","gists_url":"https://api.github.com/users/blundell/gists{/gist_id}","starred_url":"https://api.github.com/users/blundell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blundell/subscriptions","organizations_url":"https://api.github.com/users/blundell/orgs","repos_url":"https://api.github.com/users/blundell/repos","events_url":"https://api.github.com/users/blundell/events{/privacy}","received_events_url":"https://api.github.com/users/blundell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-27T18:58:48Z","updated_at":"2015-09-27T19:01:24Z","closed_at":null,"body":"Hi,\r\n\r\nThe inquirer module isn't bundle with your module so you get the error—in the title—when running the `new` task.\r\n\r\n`npm install inquirer` in your module directory is enough to fix the problem but this extra step isn't obvious to everyone.\r\n\r\n```\r\n> node ./scripts/new-author.js\r\n\r\nmodule.js:338\r\n    throw err;\r\n    ^\r\n\r\nError: Cannot find module 'inquirer'\r\n    at Function.Module._resolveFilename (module.js:336:15)\r\n    at Function.Module._load (module.js:286:25)\r\n    at Module.require (module.js:365:17)\r\n    at require (module.js:384:17)\r\n    at Object.<anonymous> (/Users/foo/scripts/new-author.js:13:16)\r\n    at Module._compile (module.js:434:26)\r\n    at Object.Module._extensions..js (module.js:452:10)\r\n    at Module.load (module.js:355:32)\r\n    at Function.Module._load (module.js:310:12)\r\n    at Function.Module.runMain (module.js:475:10)\r\n\r\nnpm ERR! Darwin 14.5.0\r\nnpm ERR! argv \"/usr/local/Cellar/node/4.1.1/bin/node\" \"/usr/local/bin/npm\" \"run\" \"new\"\r\nnpm ERR! node v4.1.1\r\nnpm ERR! npm  v2.14.4\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! intel-android-hub@0.0.1 new: `node ./scripts/new-author.js`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the intel-android-hub@0.0.1 new script 'node ./scripts/new-author.js'.\r\nnpm ERR! This is most likely a problem with the intel-android-hub package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node ./scripts/new-author.js\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls intel-android-hub\r\nnpm ERR! There is likely additional logging output above.\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/intel-android/androidhub/issues/comments/143587738","html_url":"https://github.com/intel-android/androidhub/issues/42#issuecomment-143587738","issue_url":"https://api.github.com/repos/intel-android/androidhub/issues/42","id":143587738,"user":{"login":"blundell","id":655860,"avatar_url":"https://avatars.githubusercontent.com/u/655860?v=3","gravatar_id":"","url":"https://api.github.com/users/blundell","html_url":"https://github.com/blundell","followers_url":"https://api.github.com/users/blundell/followers","following_url":"https://api.github.com/users/blundell/following{/other_user}","gists_url":"https://api.github.com/users/blundell/gists{/gist_id}","starred_url":"https://api.github.com/users/blundell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blundell/subscriptions","organizations_url":"https://api.github.com/users/blundell/orgs","repos_url":"https://api.github.com/users/blundell/repos","events_url":"https://api.github.com/users/blundell/events{/privacy}","received_events_url":"https://api.github.com/users/blundell/received_events","type":"User","site_admin":false},"created_at":"2015-09-27T19:01:24Z","updated_at":"2015-09-27T19:01:24Z","body":"and then I get the same problem with `request`\r\n\r\n```\r\n> node ./scripts/new-author.js\r\n\r\nmodule.js:338\r\n    throw err;\r\n    ^\r\n\r\nError: Cannot find module 'request'\r\n    at Function.Module._resolveFilename (module.js:336:15)\r\n    at Function.Module._load (module.js:286:25)\r\n    at Module.require (module.js:365:17)\r\n    at require (module.js:384:17)\r\n    at Object.<anonymous> (/Users/foo/androidhub/scripts/new-author.js:16:16)\r\n    at Module._compile (module.js:434:26)\r\n    at Object.Module._extensions..js (module.js:452:10)\r\n    at Module.load (module.js:355:32)\r\n    at Function.Module._load (module.js:310:12)\r\n    at Function.Module.runMain (module.js:475:10)\r\n```"}}