{"action":"created","issue":{"url":"https://api.github.com/repos/tjunnone/npm-check-updates/issues/146","labels_url":"https://api.github.com/repos/tjunnone/npm-check-updates/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/tjunnone/npm-check-updates/issues/146/comments","events_url":"https://api.github.com/repos/tjunnone/npm-check-updates/issues/146/events","html_url":"https://github.com/tjunnone/npm-check-updates/issues/146","id":109751992,"number":146,"title":"ncu -g doesn't work on homebrew or windows","user":{"login":"cebor","id":1576120,"avatar_url":"https://avatars.githubusercontent.com/u/1576120?v=3","gravatar_id":"","url":"https://api.github.com/users/cebor","html_url":"https://github.com/cebor","followers_url":"https://api.github.com/users/cebor/followers","following_url":"https://api.github.com/users/cebor/following{/other_user}","gists_url":"https://api.github.com/users/cebor/gists{/gist_id}","starred_url":"https://api.github.com/users/cebor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebor/subscriptions","organizations_url":"https://api.github.com/users/cebor/orgs","repos_url":"https://api.github.com/users/cebor/repos","events_url":"https://api.github.com/users/cebor/events{/privacy}","received_events_url":"https://api.github.com/users/cebor/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tjunnone/npm-check-updates/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":33,"created_at":"2015-10-05T08:32:33Z","updated_at":"2015-12-06T17:35:17Z","closed_at":null,"body":"`ncu -g` always says that my deps are up to date, even when they are not!\r\n\r\nnode: 4.1.1 (brew)\r\nos: osx 10.11\r\n\r\n```bash\r\n$ ncu -g\r\n\r\nAll global packages are up-to-date :)\r\n```\r\n\r\nOn my ubuntu machine all works fine!"},"comment":{"url":"https://api.github.com/repos/tjunnone/npm-check-updates/issues/comments/162330943","html_url":"https://github.com/tjunnone/npm-check-updates/issues/146#issuecomment-162330943","issue_url":"https://api.github.com/repos/tjunnone/npm-check-updates/issues/146","id":162330943,"user":{"login":"metaraine","id":750276,"avatar_url":"https://avatars.githubusercontent.com/u/750276?v=3","gravatar_id":"","url":"https://api.github.com/users/metaraine","html_url":"https://github.com/metaraine","followers_url":"https://api.github.com/users/metaraine/followers","following_url":"https://api.github.com/users/metaraine/following{/other_user}","gists_url":"https://api.github.com/users/metaraine/gists{/gist_id}","starred_url":"https://api.github.com/users/metaraine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metaraine/subscriptions","organizations_url":"https://api.github.com/users/metaraine/orgs","repos_url":"https://api.github.com/users/metaraine/repos","events_url":"https://api.github.com/users/metaraine/events{/privacy}","received_events_url":"https://api.github.com/users/metaraine/received_events","type":"User","site_admin":false},"created_at":"2015-12-06T17:35:17Z","updated_at":"2015-12-06T17:35:17Z","body":"@glen-84 It seems there is some problem with certain node installs where the npm prefix doesn't match the installed location, and thus `npm.commands.list` returns an empty result. I changed the behavior of ncu in global mode to use a spawned `npm ls -g`, which I am hoping will find your installed packages correctly now. \r\n\r\nI won't release this on the latest branch until it is tested in a wider variety of environments, so for now it is available on the unstable branch:\r\n\r\n```\r\n$ npm install -g npm-check-updates@2.5.3-spawnglobal\r\n```\r\n\r\nI invite others to install this prerelease version and make sure it works in your environment. The *only* difference is in global mode: `ncu -g`. This will help before releasing it to stable. Thanks!\r\n\r\n**(Bonus: I fixed a performance bottleneck, so you should experience ~3x speed improvement with this version)**"}}