{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/9720","labels_url":"https://api.github.com/repos/npm/npm/issues/9720/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/9720/comments","events_url":"https://api.github.com/repos/npm/npm/issues/9720/events","html_url":"https://github.com/npm/npm/issues/9720","id":107837097,"number":9720,"title":"Error: Missing required argument #1 for npm update -g","user":{"login":"siutsin","id":904442,"avatar_url":"https://avatars.githubusercontent.com/u/904442?v=3","gravatar_id":"","url":"https://api.github.com/users/siutsin","html_url":"https://github.com/siutsin","followers_url":"https://api.github.com/users/siutsin/followers","following_url":"https://api.github.com/users/siutsin/following{/other_user}","gists_url":"https://api.github.com/users/siutsin/gists{/gist_id}","starred_url":"https://api.github.com/users/siutsin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siutsin/subscriptions","organizations_url":"https://api.github.com/users/siutsin/orgs","repos_url":"https://api.github.com/users/siutsin/repos","events_url":"https://api.github.com/users/siutsin/events{/privacy}","received_events_url":"https://api.github.com/users/siutsin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-23T02:05:08Z","updated_at":"2015-10-01T11:29:10Z","closed_at":null,"body":"Hi, I am not able to run `npm update -g`, following is the error log.\r\n```\r\n0 info it worked if it ends with ok\r\n1 verbose cli [ '/usr/local/Cellar/node/4.1.0/bin/node',\r\n1 verbose cli   '/Users/simonli/.node/bin/npm',\r\n1 verbose cli   'update',\r\n1 verbose cli   '-g' ]\r\n2 info using npm@3.3.3\r\n3 info using node@v4.1.0\r\n4 verbose stack Error: Missing required argument #1\r\n4 verbose stack     at module.exports (/Users/simonli/.node/lib/node_modules/npm/lib/install/logical-tree.js:12:3)\r\n4 verbose stack     at /Users/simonli/.node/lib/node_modules/npm/lib/outdated.js:77:16\r\n4 verbose stack     at /Users/simonli/.node/lib/node_modules/npm/lib/outdated.js:61:20\r\n4 verbose stack     at /Users/simonli/.node/lib/node_modules/npm/node_modules/read-package-tree/rpt.js:188:9\r\n4 verbose stack     at f (/Users/simonli/.node/lib/node_modules/npm/node_modules/once/once.js:17:25)\r\n4 verbose stack     at /Users/simonli/.node/lib/node_modules/npm/node_modules/read-package-tree/rpt.js:154:20\r\n4 verbose stack     at f (/Users/simonli/.node/lib/node_modules/npm/node_modules/once/once.js:17:25)\r\n4 verbose stack     at then (/Users/simonli/.node/lib/node_modules/npm/node_modules/read-package-tree/rpt.js:123:22)\r\n4 verbose stack     at /Users/simonli/.node/lib/node_modules/npm/node_modules/read-package-tree/rpt.js:83:20\r\n4 verbose stack     at fs.js:1579:23\r\n5 verbose cwd /Users/simonli/Desktop\r\n6 error Darwin 14.5.0\r\n7 error argv \"/usr/local/Cellar/node/4.1.0/bin/node\" \"/Users/simonli/.node/bin/npm\" \"update\" \"-g\"\r\n8 error node v4.1.0\r\n9 error npm  v3.3.3\r\n10 error code EMISSINGARG\r\n11 error typeerror Error: Missing required argument #1\r\n11 error typeerror     at module.exports (/Users/simonli/.node/lib/node_modules/npm/lib/install/logical-tree.js:12:3)\r\n11 error typeerror     at /Users/simonli/.node/lib/node_modules/npm/lib/outdated.js:77:16\r\n11 error typeerror     at /Users/simonli/.node/lib/node_modules/npm/lib/outdated.js:61:20\r\n11 error typeerror     at /Users/simonli/.node/lib/node_modules/npm/node_modules/read-package-tree/rpt.js:188:9\r\n11 error typeerror     at f (/Users/simonli/.node/lib/node_modules/npm/node_modules/once/once.js:17:25)\r\n11 error typeerror     at /Users/simonli/.node/lib/node_modules/npm/node_modules/read-package-tree/rpt.js:154:20\r\n11 error typeerror     at f (/Users/simonli/.node/lib/node_modules/npm/node_modules/once/once.js:17:25)\r\n11 error typeerror     at then (/Users/simonli/.node/lib/node_modules/npm/node_modules/read-package-tree/rpt.js:123:22)\r\n11 error typeerror     at /Users/simonli/.node/lib/node_modules/npm/node_modules/read-package-tree/rpt.js:83:20\r\n11 error typeerror     at fs.js:1579:23\r\n11 error typeerror This is an error with npm itself. Please report this error at:\r\n11 error typeerror     <http://github.com/npm/npm/issues>\r\n12 verbose exit [ 1, true ]\r\n```"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/144701942","html_url":"https://github.com/npm/npm/issues/9720#issuecomment-144701942","issue_url":"https://api.github.com/repos/npm/npm/issues/9720","id":144701942,"user":{"login":"joshuakleveter","id":11037771,"avatar_url":"https://avatars.githubusercontent.com/u/11037771?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuakleveter","html_url":"https://github.com/joshuakleveter","followers_url":"https://api.github.com/users/joshuakleveter/followers","following_url":"https://api.github.com/users/joshuakleveter/following{/other_user}","gists_url":"https://api.github.com/users/joshuakleveter/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuakleveter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuakleveter/subscriptions","organizations_url":"https://api.github.com/users/joshuakleveter/orgs","repos_url":"https://api.github.com/users/joshuakleveter/repos","events_url":"https://api.github.com/users/joshuakleveter/events{/privacy}","received_events_url":"https://api.github.com/users/joshuakleveter/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T11:29:10Z","updated_at":"2015-10-01T11:29:10Z","body":"I ended up doing a complete uninstall and reinstall of Node and NPM and that fixed the problem on my machine. Could be due to upgrading from NPM 2 to NPM 3."}}