{"action":"created","issue":{"url":"https://api.github.com/repos/tjmehta/101/issues/113","labels_url":"https://api.github.com/repos/tjmehta/101/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/tjmehta/101/issues/113/comments","events_url":"https://api.github.com/repos/tjmehta/101/issues/113/events","html_url":"https://github.com/tjmehta/101/issues/113","id":111485190,"number":113,"title":"breaks npm v3.3.5/3.3.6 outdated cmd when listed as a devDependency in package.json","user":{"login":"mshick","id":277401,"avatar_url":"https://avatars.githubusercontent.com/u/277401?v=3","gravatar_id":"","url":"https://api.github.com/users/mshick","html_url":"https://github.com/mshick","followers_url":"https://api.github.com/users/mshick/followers","following_url":"https://api.github.com/users/mshick/following{/other_user}","gists_url":"https://api.github.com/users/mshick/gists{/gist_id}","starred_url":"https://api.github.com/users/mshick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mshick/subscriptions","organizations_url":"https://api.github.com/users/mshick/orgs","repos_url":"https://api.github.com/users/mshick/repos","events_url":"https://api.github.com/users/mshick/events{/privacy}","received_events_url":"https://api.github.com/users/mshick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-14T20:27:02Z","updated_at":"2015-10-22T18:14:51Z","closed_at":null,"body":"Pretty crazy issue. My `npm outdated` started failing... After some tracing I noticed that `101` causes a weird run in the dependency array built in the npm `outdated` utility. I'm guessing this is a npm bug related to the numeric module name (tests with \"202\" and \"2\" showed the same result).\r\n\r\nDocumenting here, in case you want to raise an issue with the npm team. A brief search makes me think this hasn't been filed yet.\r\n\r\nSteps to reproduce:\r\n\r\n* add any module with a numeric name to the `devDependencies` object in package.json\r\n* run `npm outdated`\r\n* receive error like below\r\n\r\n```\r\nnpm ERR! Darwin 15.0.0\r\nnpm ERR! argv \"/usr/local/Cellar/node/4.2.1/bin/node\" \"/Users/mshick/.node/bin/npm\" \"outdated\"\r\nnpm ERR! node v4.2.1\r\nnpm ERR! npm  v3.3.6\r\n\r\nnpm ERR! Cannot read property 'name' of undefined\r\n```\r\n\r\nHere's a sample npm-debug.log entry:\r\n\r\n```\r\n0 info it worked if it ends with ok\r\n1 verbose cli [ '/usr/local/Cellar/node/4.2.1/bin/node',\r\n1 verbose cli   '/Users/mshick/.node/bin/npm',\r\n1 verbose cli   'outdated' ]\r\n2 info using npm@3.3.6\r\n3 info using node@v4.2.1\r\n4 silly mapToRegistry name MD5\r\n5 silly mapToRegistry using default registry\r\n6 silly mapToRegistry registry https://registry.npmjs.org/\r\n7 silly mapToRegistry uri https://registry.npmjs.org/MD5\r\n8 silly mapToRegistry name adm-zip\r\n9 silly mapToRegistry using default registry\r\n10 silly mapToRegistry registry https://registry.npmjs.org/\r\n11 silly mapToRegistry uri https://registry.npmjs.org/adm-zip\r\n12 verbose stack TypeError: Cannot read property 'name' of undefined\r\n12 verbose stack     at /Users/mshick/.node/lib/node_modules/npm/lib/outdated.js:295:27\r\n12 verbose stack     at /Users/mshick/.node/lib/node_modules/npm/node_modules/slide/lib/async-map.js:52:35\r\n12 verbose stack     at Array.forEach (native)\r\n12 verbose stack     at /Users/mshick/.node/lib/node_modules/npm/node_modules/slide/lib/async-map.js:52:11\r\n12 verbose stack     at Array.forEach (native)\r\n12 verbose stack     at asyncMap (/Users/mshick/.node/lib/node_modules/npm/node_modules/slide/lib/async-map.js:51:8)\r\n12 verbose stack     at outdated_ (/Users/mshick/.node/lib/node_modules/npm/lib/outdated.js:294:3)\r\n12 verbose stack     at /Users/mshick/.node/lib/node_modules/npm/lib/outdated.js:78:5\r\n12 verbose stack     at /Users/mshick/.node/lib/node_modules/npm/lib/install/deps.js:119:5\r\n12 verbose stack     at LOOP (/Users/mshick/.node/lib/node_modules/npm/node_modules/slide/lib/chain.js:7:26)\r\n13 verbose cwd /Users/mshick/code/project\r\n14 error Darwin 15.0.0\r\n15 error argv \"/usr/local/Cellar/node/4.2.1/bin/node\" \"/Users/mshick/.node/bin/npm\" \"outdated\"\r\n16 error node v4.2.1\r\n17 error npm  v3.3.6\r\n18 error Cannot read property 'name' of undefined\r\n19 error If you need help, you may report this error at:\r\n19 error     <https://github.com/npm/npm/issues>\r\n20 verbose exit [ 1, true ]\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/tjmehta/101/issues/comments/150310402","html_url":"https://github.com/tjmehta/101/issues/113#issuecomment-150310402","issue_url":"https://api.github.com/repos/tjmehta/101/issues/113","id":150310402,"user":{"login":"tjmehta","id":640279,"avatar_url":"https://avatars.githubusercontent.com/u/640279?v=3","gravatar_id":"","url":"https://api.github.com/users/tjmehta","html_url":"https://github.com/tjmehta","followers_url":"https://api.github.com/users/tjmehta/followers","following_url":"https://api.github.com/users/tjmehta/following{/other_user}","gists_url":"https://api.github.com/users/tjmehta/gists{/gist_id}","starred_url":"https://api.github.com/users/tjmehta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjmehta/subscriptions","organizations_url":"https://api.github.com/users/tjmehta/orgs","repos_url":"https://api.github.com/users/tjmehta/repos","events_url":"https://api.github.com/users/tjmehta/events{/privacy}","received_events_url":"https://api.github.com/users/tjmehta/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T18:14:51Z","updated_at":"2015-10-22T18:14:51Z","body":"@mshick sorry for the delay, thanks for the hand @bkendall "}}