{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/9984","labels_url":"https://api.github.com/repos/npm/npm/issues/9984/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/9984/comments","events_url":"https://api.github.com/repos/npm/npm/issues/9984/events","html_url":"https://github.com/npm/npm/issues/9984","id":111575530,"number":9984,"title":"npm install failed - Cannot read property 'emit' of null","user":{"login":"Smirne","id":1426000,"avatar_url":"https://avatars.githubusercontent.com/u/1426000?v=3","gravatar_id":"","url":"https://api.github.com/users/Smirne","html_url":"https://github.com/Smirne","followers_url":"https://api.github.com/users/Smirne/followers","following_url":"https://api.github.com/users/Smirne/following{/other_user}","gists_url":"https://api.github.com/users/Smirne/gists{/gist_id}","starred_url":"https://api.github.com/users/Smirne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Smirne/subscriptions","organizations_url":"https://api.github.com/users/Smirne/orgs","repos_url":"https://api.github.com/users/Smirne/repos","events_url":"https://api.github.com/users/Smirne/events{/privacy}","received_events_url":"https://api.github.com/users/Smirne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-15T09:14:23Z","updated_at":"2015-12-14T23:22:25Z","closed_at":null,"body":"Hello, I'm receiving this error while performing npm install in our continuous integration environment. \r\nThe build works fine on my machine (node 0.10.36 npm 2.4.1). \r\n\r\nThis log was seen while downloading dependencies:\r\n```\r\nnpm info attempt registry request try #2 at 10:59:23 AM\r\nnpm http request GET https://registry.npmjs.org/deprecated\r\nnpm ERR! Linux 3.0.13-0.27-default\r\nnpm ERR! argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"install\" \"-d\"\r\nnpm ERR! node v4.2.1\r\nnpm ERR! npm  v3.3.6\r\n\r\nnpm ERR! Cannot read property 'emit' of null\r\nnpm ERR! \r\nnpm ERR! If you need help, you may report this error at:\r\nnpm ERR!     <https://github.com/npm/npm/issues>\r\nnpm ERR! Linux 3.0.13-0.27-default\r\nnpm ERR! argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"install\" \"-d\"\r\nnpm ERR! node v4.2.1\r\nnpm ERR! npm  v3.3.6\r\n\r\nnpm ERR! Cannot read property 'emit' of null\r\nnpm ERR! \r\nnpm ERR! If you need help, you may report this error at:\r\nnpm ERR!     <https://github.com/npm/npm/issues>\r\nnpm http 304 https://registry.npmjs.org/deprecated\r\n```\r\nAnd this were the final lines of the log.\r\n```\r\nnpm WARN EPEERINVALID karma-jasmine@0.3.6 requires a peer of jasmine-core@* but none was installed.\r\nnpm WARN EPEERINVALID karma-phantomjs-launcher@0.1.4 requires a peer of karma@>=0.9 but none was installed.\r\nnpm WARN EPEERINVALID gulp-karma@0.0.5 requires a peer of karma@>=0.10 <=0.13 but none was installed.\r\nnpm WARN EPACKAGEJSON OCWEB@0.0.1 No description\r\nnpm WARN EPACKAGEJSON OCWEB@0.0.1 No repository field.\r\nnpm WARN EPACKAGEJSON OCWEB@0.0.1 No license field.\r\nnpm ERR! Linux 3.0.13-0.27-default\r\nnpm ERR! argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"install\" \"-d\"\r\nnpm ERR! node v4.2.1\r\nnpm ERR! npm  v3.3.6\r\n\r\nnpm ERR! Callback called more than once.\r\nnpm ERR! \r\nnpm ERR! If you need help, you may report this error at:\r\nnpm ERR!     <https://github.com/npm/npm/issues>\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /data/jenkins/jobs/OCWeb2-angular/workspace/npm-debug.log\r\nBuild step 'Execute shell' marked build as failure\r\n\r\n\r\nnpm debug log available here:\r\nhttps://gist.github.com/Smirne/78a972422463c5c1c315#file-npm-debug-log\r\n```"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/164592019","html_url":"https://github.com/npm/npm/issues/9984#issuecomment-164592019","issue_url":"https://api.github.com/repos/npm/npm/issues/9984","id":164592019,"user":{"login":"chadly","id":1761510,"avatar_url":"https://avatars.githubusercontent.com/u/1761510?v=3","gravatar_id":"","url":"https://api.github.com/users/chadly","html_url":"https://github.com/chadly","followers_url":"https://api.github.com/users/chadly/followers","following_url":"https://api.github.com/users/chadly/following{/other_user}","gists_url":"https://api.github.com/users/chadly/gists{/gist_id}","starred_url":"https://api.github.com/users/chadly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadly/subscriptions","organizations_url":"https://api.github.com/users/chadly/orgs","repos_url":"https://api.github.com/users/chadly/repos","events_url":"https://api.github.com/users/chadly/events{/privacy}","received_events_url":"https://api.github.com/users/chadly/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T23:22:25Z","updated_at":"2015-12-14T23:22:25Z","body":"I was having the same problem on Teamcity. Updating to node v5 with npm v3 fixed it."}}