{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/4169","labels_url":"https://api.github.com/repos/npm/npm/issues/4169/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/4169/comments","events_url":"https://api.github.com/repos/npm/npm/issues/4169/events","html_url":"https://github.com/npm/npm/issues/4169","id":23044933,"number":4169,"title":"Error: Callback called more than once.","user":{"login":"bjornstar","id":20630,"avatar_url":"https://avatars.githubusercontent.com/u/20630?v=3","gravatar_id":"","url":"https://api.github.com/users/bjornstar","html_url":"https://github.com/bjornstar","followers_url":"https://api.github.com/users/bjornstar/followers","following_url":"https://api.github.com/users/bjornstar/following{/other_user}","gists_url":"https://api.github.com/users/bjornstar/gists{/gist_id}","starred_url":"https://api.github.com/users/bjornstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjornstar/subscriptions","organizations_url":"https://api.github.com/users/bjornstar/orgs","repos_url":"https://api.github.com/users/bjornstar/repos","events_url":"https://api.github.com/users/bjornstar/events{/privacy}","received_events_url":"https://api.github.com/users/bjornstar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npm/npm/labels/support","name":"support","color":"FF91AF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2013-11-21T04:54:58Z","updated_at":"2015-02-03T14:45:36Z","closed_at":null,"body":"I'm pretty sure it's because of multiple optionalDependencies failing to compile. I am on OS X 10.9. It happens on npm v1.3.14, v1.3.11, & v1.2.30\r\n\r\nHere is the error message:\r\n```\r\nnpm ERR! Error: Callback called more than once.\r\nnpm ERR!     at errorHandler (/Users/bjornstromberg/.nvm/v0.10.22/lib/node_modules/npm/lib/utils/error-handler.js:80:16)\r\nnpm ERR!     at save (/Users/bjornstromberg/.nvm/v0.10.22/lib/node_modules/npm/lib/install.js:330:12)\r\nnpm ERR!     at /Users/bjornstromberg/.nvm/v0.10.22/lib/node_modules/npm/lib/install.js:98:7\r\nnpm ERR!     at /Users/bjornstromberg/.nvm/v0.10.22/lib/node_modules/npm/lib/install.js:188:5\r\nnpm ERR!     at /Users/bjornstromberg/.nvm/v0.10.22/lib/node_modules/npm/node_modules/read-installed/read-installed.js:119:5\r\nnpm ERR!     at /Users/bjornstromberg/.nvm/v0.10.22/lib/node_modules/npm/node_modules/read-installed/read-installed.js:233:14\r\nnpm ERR!     at cb (/Users/bjornstromberg/.nvm/v0.10.22/lib/node_modules/npm/node_modules/slide/lib/async-map.js:48:11)\r\nnpm ERR!     at /Users/bjornstromberg/.nvm/v0.10.22/lib/node_modules/npm/node_modules/read-installed/read-installed.js:233:14\r\nnpm ERR!     at cb (/Users/bjornstromberg/.nvm/v0.10.22/lib/node_modules/npm/node_modules/slide/lib/async-map.js:48:11)\r\nnpm ERR!     at /Users/bjornstromberg/.nvm/v0.10.22/lib/node_modules/npm/node_modules/read-installed/read-installed.js:233:14\r\nnpm ERR! If you need help, you may report this log at:\r\nnpm ERR!     <http://github.com/isaacs/npm/issues>\r\nnpm ERR! or email it to:\r\nnpm ERR!     <npm-@googlegroups.com>\r\n\r\nnpm ERR! System Darwin 13.0.0\r\nnpm ERR! command \"/Users/bjornstromberg/.nvm/v0.10.22/bin/node\" \"/Users/bjornstromberg/.nvm/v0.10.22/bin/npm\" \"install\"\r\nnpm ERR! cwd /Users/bjornstromberg/myapp\r\nnpm ERR! node -v v0.10.22\r\nnpm ERR! npm -v 1.3.14\r\nnpm ERR! \r\nnpm ERR! Additional logging details can be found in:\r\nnpm ERR!     /Users/bjornstromberg/myapp/npm-debug.log\r\nnpm ERR! not ok code 0\r\n```"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/72661955","html_url":"https://github.com/npm/npm/issues/4169#issuecomment-72661955","issue_url":"https://api.github.com/repos/npm/npm/issues/4169","id":72661955,"user":{"login":"smikes","id":5124609,"avatar_url":"https://avatars.githubusercontent.com/u/5124609?v=3","gravatar_id":"","url":"https://api.github.com/users/smikes","html_url":"https://github.com/smikes","followers_url":"https://api.github.com/users/smikes/followers","following_url":"https://api.github.com/users/smikes/following{/other_user}","gists_url":"https://api.github.com/users/smikes/gists{/gist_id}","starred_url":"https://api.github.com/users/smikes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smikes/subscriptions","organizations_url":"https://api.github.com/users/smikes/orgs","repos_url":"https://api.github.com/users/smikes/repos","events_url":"https://api.github.com/users/smikes/events{/privacy}","received_events_url":"https://api.github.com/users/smikes/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T14:45:36Z","updated_at":"2015-02-03T14:45:36Z","body":"Is this still a problem for you?\r\n\r\nThere may still be race conditions around `optionalDependencies` or dependencies that require compilation, but overall the install has become much more reliable since 1.3.4.  Can you try updating your npm installation?\r\n\r\nTo update npm, run `npm -g install npm@latest`\r\n\r\nThen, if the problem persists, could you please upload your npm-debug.log as a  gist <http://gist.github.com>? If possible, run npm with at least one `-d` flag to increase the logging level.\r\n\r\nWe are trying to clean up older npm issues, so if we don't hear back from you within a week, we will close this issue. (Don't worry -- you can always come back again and open a new issue!)\r\n\r\nThanks!\r\n"}}