{"action":"opened","issue":{"url":"https://api.github.com/repos/nodesource/understanding-npm/issues/10","labels_url":"https://api.github.com/repos/nodesource/understanding-npm/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/nodesource/understanding-npm/issues/10/comments","events_url":"https://api.github.com/repos/nodesource/understanding-npm/issues/10/events","html_url":"https://github.com/nodesource/understanding-npm/issues/10","id":89904288,"number":10,"title":"Can't set headers after they are sent","user":{"login":"robbig2871","id":3903647,"avatar_url":"https://avatars.githubusercontent.com/u/3903647?v=3","gravatar_id":"","url":"https://api.github.com/users/robbig2871","html_url":"https://github.com/robbig2871","followers_url":"https://api.github.com/users/robbig2871/followers","following_url":"https://api.github.com/users/robbig2871/following{/other_user}","gists_url":"https://api.github.com/users/robbig2871/gists{/gist_id}","starred_url":"https://api.github.com/users/robbig2871/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbig2871/subscriptions","organizations_url":"https://api.github.com/users/robbig2871/orgs","repos_url":"https://api.github.com/users/robbig2871/repos","events_url":"https://api.github.com/users/robbig2871/events{/privacy}","received_events_url":"https://api.github.com/users/robbig2871/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-21T12:20:20Z","updated_at":"2015-06-21T12:20:20Z","closed_at":null,"body":"sudo npm install - OK\r\nnpm start - OK\r\n\r\nServer is starting - OK.\r\nFirefox opening connection - OK .\r\nServer ends with attached errors -NOTOK.\r\nFirefox still waiting , 0% progress:)\r\n\r\nMy env:\r\nDarwin 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64\r\nnode v0.12.4\r\n\r\nAny advice?\r\n\r\n```\r\nnpm start\r\n\r\n> understanding-npm@1.0.0 prestart /Users/user/Documents/GITHUB/understanding-npm\r\n> npm run relink\r\n\r\n\r\n> understanding-npm@1.0.0 relink /Users/user/Documents/GITHUB/understanding-npm\r\n> linklocal\r\n\r\nnsight-header\r\nunpm-downloaders\r\nunpm-fetch-data\r\nunpm-frontend\r\nunpm-labels\r\nunpm-dat\r\nunpm-preloader\r\nunpm-registry\r\nunpm-screen-coords\r\nunpm-server\r\nunpm-storyboard\r\nunpm-camera\r\nunpm-system\r\nunpm-background\r\ngooey\r\nunpm-packages\r\n\r\nLinked 16 dependencies\r\n\r\n> understanding-npm@1.0.0 start /Users/user/Documents/GITHUB/understanding-npm\r\n> npm ex @unpm/server npm start\r\n\r\n\r\n> @unpm/server@1.0.0 start /Users/user/Documents/GITHUB/understanding-npm/unpm-server\r\n> babel-node .\r\n\r\nAutoprefixer's process() method is deprecated and will removed in next major release. Use postcss([autoprefixer]).process() instead\r\nhttp://localhost:9966\r\nAutoprefixer's process() method is deprecated and will removed in next major release. Use postcss([autoprefixer]).process() instead\r\n_http_outgoing.js:335\r\n    throw new Error('Can\\'t set headers after they are sent.');\r\n          ^\r\nError: Can't set headers after they are sent.\r\n    at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:335:11)\r\n    at bail (/Users/user/Documents/GITHUB/understanding-npm/unpm-server/index.js:163:7)\r\n    at /Users/user/Documents/GITHUB/understanding-npm/unpm-server/index.js:128:21\r\n    at next (/Users/user/Documents/GITHUB/understanding-npm/node_modules/course/index.js:68:23)\r\n    at Readable.<anonymous> (/Users/user/Documents/GITHUB/understanding-npm/unpm-server/index.js:119:21)\r\n    at Readable.emit (events.js:107:17)\r\n    at Labeled.<anonymous> (/Users/user/Documents/GITHUB/understanding-npm/node_modules/browserify/node_modules/read-only-stream/index.js:27:44)\r\n    at Labeled.emit (events.js:107:17)\r\n    at Labeled.<anonymous> (/Users/user/Documents/GITHUB/understanding-npm/node_modules/browserify/node_modules/labeled-stream-splicer/node_modules/stream-splicer/index.js:132:18)\r\n    at Labeled.emit (events.js:129:20)\r\n\r\nnpm ERR! Darwin 14.3.0\r\nnpm ERR! argv \"node\" \"/usr/local/bin/npm\" \"start\"\r\nnpm ERR! node v0.12.4\r\nnpm ERR! npm  v2.11.3\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! @unpm/server@1.0.0 start: `babel-node .`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the @unpm/server@1.0.0 start script 'babel-node .'.\r\nnpm ERR! This is most likely a problem with the @unpm/server package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     babel-node .\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls @unpm/server\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /Users/user/Documents/GITHUB/understanding-npm/unpm-server/npm-debug.log\r\nnpm ERR! weird error 1\r\n\r\nnpm ERR! Darwin 14.3.0\r\nnpm ERR! argv \"node\" \"/usr/local/bin/npm\" \"start\"\r\nnpm ERR! node v0.12.4\r\nnpm ERR! npm  v2.11.3\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! understanding-npm@1.0.0 start: `npm ex @unpm/server npm start`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the understanding-npm@1.0.0 start script 'npm ex @unpm/server npm start'.\r\nnpm ERR! This is most likely a problem with the understanding-npm package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     npm ex @unpm/server npm start\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls understanding-npm\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /Users/user/Documents/GITHUB/understanding-npm/npm-debug.loguser\r\n```"}}