{"action":"created","issue":{"url":"https://api.github.com/repos/node-gh/gh/issues/349","labels_url":"https://api.github.com/repos/node-gh/gh/issues/349/labels{/name}","comments_url":"https://api.github.com/repos/node-gh/gh/issues/349/comments","events_url":"https://api.github.com/repos/node-gh/gh/issues/349/events","html_url":"https://github.com/node-gh/gh/issues/349","id":57730846,"number":349,"title":"TypeError: Cannot read property 'toString' of null when calling config.getNodeModulesGlobalPath","user":{"login":"tomzx","id":188960,"avatar_url":"https://avatars.githubusercontent.com/u/188960?v=3","gravatar_id":"","url":"https://api.github.com/users/tomzx","html_url":"https://github.com/tomzx","followers_url":"https://api.github.com/users/tomzx/followers","following_url":"https://api.github.com/users/tomzx/following{/other_user}","gists_url":"https://api.github.com/users/tomzx/gists{/gist_id}","starred_url":"https://api.github.com/users/tomzx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomzx/subscriptions","organizations_url":"https://api.github.com/users/tomzx/orgs","repos_url":"https://api.github.com/users/tomzx/repos","events_url":"https://api.github.com/users/tomzx/events{/privacy}","received_events_url":"https://api.github.com/users/tomzx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/node-gh/gh/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":29,"created_at":"2015-02-15T13:48:43Z","updated_at":"2015-03-14T23:58:41Z","closed_at":"2015-02-19T22:22:36Z","body":"I am on the `2.0.x` branch, after moving from `master` (as suggested in #345). Running io.js `v.1.1.0`, npm `v2.4.1`.\r\n\r\n```\r\nE:\\gh\\bin\\gh.js:30\r\n    throw e;\r\n          ^\r\nTypeError: Cannot read property 'toString' of null\r\n    at Object.exports.getNodeModulesGlobalPath (E:\\gh\\lib\\configs.js:31:27)\r\n    at getPlugins (E:\\gh\\lib\\configs.js:193:31)\r\n    at Object.exports.getPlugins (E:\\gh\\lib\\configs.js:211:19)\r\n    at Object.exports.asyncReadPackages (E:\\gh\\lib\\base.js:46:13)\r\n    at Object.exports.checkVersion (E:\\gh\\lib\\base.js:64:13)\r\n    at E:\\gh\\lib\\cmd.js:112:14\r\n    at E:\\gh\\node_modules\\async\\lib\\async.js:610:21\r\n    at E:\\gh\\node_modules\\async\\lib\\async.js:249:17\r\n    at iterate (E:\\gh\\node_modules\\async\\lib\\async.js:149:13)\r\n    at async.eachSeries (E:\\gh\\node_modules\\async\\lib\\async.js:165:9)\r\n```"},"comment":{"url":"https://api.github.com/repos/node-gh/gh/issues/comments/80765354","html_url":"https://github.com/node-gh/gh/issues/349#issuecomment-80765354","issue_url":"https://api.github.com/repos/node-gh/gh/issues/349","id":80765354,"user":{"login":"tomalec","id":17435,"avatar_url":"https://avatars.githubusercontent.com/u/17435?v=3","gravatar_id":"","url":"https://api.github.com/users/tomalec","html_url":"https://github.com/tomalec","followers_url":"https://api.github.com/users/tomalec/followers","following_url":"https://api.github.com/users/tomalec/following{/other_user}","gists_url":"https://api.github.com/users/tomalec/gists{/gist_id}","starred_url":"https://api.github.com/users/tomalec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomalec/subscriptions","organizations_url":"https://api.github.com/users/tomalec/orgs","repos_url":"https://api.github.com/users/tomalec/repos","events_url":"https://api.github.com/users/tomalec/events{/privacy}","received_events_url":"https://api.github.com/users/tomalec/received_events","type":"User","site_admin":false},"created_at":"2015-03-14T23:58:41Z","updated_at":"2015-03-14T23:58:41Z","body":"With [1.11.4](https://github.com/node-gh/gh/releases/tag/v1.11.4), and\r\n```\r\n$ node -v && npm -v\r\nv0.12.0\r\n2.5.1\r\n```\r\n\r\nI still get:\r\n\r\n```log\r\n\r\nc:\\Users\\tomalec\\AppData\\Roaming\\npm\\node_modules\\gh\\lib\\exec.js:24\r\n        stdout: exec.stdout.toString().trim(),\r\n                           ^\r\nTypeError: Cannot read property 'toString' of null\r\n    at Object.exports.spawnSync (c:\\Users\\tomalec\\AppData\\Roaming\\npm\\node_modules\\gh\\lib\\exec.js:24:28)\r\n    at Object.exports.getNodeModulesGlobalPath (c:\\Users\\tomalec\\AppData\\Roaming\\npm\\node_modules\\gh\\lib\\configs.js:29:23)\r\n    at Object.exports.run (c:\\Users\\tomalec\\AppData\\Roaming\\npm\\node_modules\\gh\\lib\\cmd.js:223:17)\r\n    at Object.<anonymous> (c:\\Users\\tomalec\\AppData\\Roaming\\npm\\node_modules\\gh\\bin\\gh.js:20:26)\r\n    at Module._compile (module.js:460:26)\r\n    at Object.Module._extensions..js (module.js:478: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:501:10)\r\n    at startup (node.js:129:16)\r\n```\r\n\r\nFor any gh command :("}}