{"action":"created","issue":{"url":"https://api.github.com/repos/IdentityModel/oidc-client-js/issues/236","repository_url":"https://api.github.com/repos/IdentityModel/oidc-client-js","labels_url":"https://api.github.com/repos/IdentityModel/oidc-client-js/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/IdentityModel/oidc-client-js/issues/236/comments","events_url":"https://api.github.com/repos/IdentityModel/oidc-client-js/issues/236/events","html_url":"https://github.com/IdentityModel/oidc-client-js/issues/236","id":197418096,"number":236,"title":"Can't start the sample locally: events.js:160 throw er; // Unhandled 'error' event","user":{"login":"dflock","id":47756,"avatar_url":"https://avatars.githubusercontent.com/u/47756?v=3","gravatar_id":"","url":"https://api.github.com/users/dflock","html_url":"https://github.com/dflock","followers_url":"https://api.github.com/users/dflock/followers","following_url":"https://api.github.com/users/dflock/following{/other_user}","gists_url":"https://api.github.com/users/dflock/gists{/gist_id}","starred_url":"https://api.github.com/users/dflock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dflock/subscriptions","organizations_url":"https://api.github.com/users/dflock/orgs","repos_url":"https://api.github.com/users/dflock/repos","events_url":"https://api.github.com/users/dflock/events{/privacy}","received_events_url":"https://api.github.com/users/dflock/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-23T19:38:06Z","updated_at":"2016-12-24T03:18:12Z","closed_at":"2016-12-24T03:18:12Z","body":"Ran the following commands:\r\n\r\n```console\r\ngit clone https://github.com/IdentityModel/oidc-client-js.git\r\ncd oidc-client-js\r\nnpm install\r\nnpm run build\r\nnpm start\r\n```\r\n\r\nand got the following error on the last command:\r\n\r\n```console\r\n ➜ npm start\r\n\r\n> oidc-client@1.2.2 start /home/duncan/dev/vuejs-eval/oidc-client-js\r\n> node sample/server.js\r\n\r\nlistening on http://localhost:5000\r\nevents.js:160\r\n      throw er; // Unhandled 'error' event\r\n      ^\r\n\r\nError: listen EADDRINUSE :::5000\r\n    at Object.exports._errnoException (util.js:1022:11)\r\n    at exports._exceptionWithHostPort (util.js:1045:20)\r\n    at Server._listen2 (net.js:1259:14)\r\n    at listen (net.js:1295:10)\r\n    at Server.listen (net.js:1391:5)\r\n    at EventEmitter.listen (/home/duncan/dev/vuejs-eval/oidc-client-js/node_modules/express/lib/application.js:617:24)\r\n    at Object.<anonymous> (/home/duncan/dev/vuejs-eval/oidc-client-js/sample/server.js:25:5)\r\n    at Module._compile (module.js:570:32)\r\n    at Object.Module._extensions..js (module.js:579:10)\r\n    at Module.load (module.js:487:32)\r\n\r\nnpm ERR! Linux 4.4.0-45-generic\r\nnpm ERR! argv \"/usr/bin/nodejs\" \"/usr/bin/npm\" \"start\"\r\nnpm ERR! node v6.9.2\r\nnpm ERR! npm  v3.10.9\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! oidc-client@1.2.2 start: `node sample/server.js`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the oidc-client@1.2.2 start script 'node sample/server.js'.\r\nnpm ERR! Make sure you have the latest version of node.js and npm installed.\r\nnpm ERR! If you do, this is most likely a problem with the oidc-client package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node sample/server.js\r\nnpm ERR! You can get information on how to open an issue for this project with:\r\nnpm ERR!     npm bugs oidc-client\r\nnpm ERR! Or if that isn't available, you can get their info via:\r\nnpm ERR!     npm owner ls oidc-client\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!     /home/duncan/dev/vuejs-eval/oidc-client-js/npm-debug.log\r\n```\r\n\r\nhere are the contents of the `npm-debug.log` file:\r\n\r\n```log\r\n0 info it worked if it ends with ok\r\n1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'start' ]\r\n2 info using npm@3.10.9\r\n3 info using node@v6.9.2\r\n4 verbose run-script [ 'prestart', 'start', 'poststart' ]\r\n5 info lifecycle oidc-client@1.2.2~prestart: oidc-client@1.2.2\r\n6 silly lifecycle oidc-client@1.2.2~prestart: no script for prestart, continuing\r\n7 info lifecycle oidc-client@1.2.2~start: oidc-client@1.2.2\r\n8 verbose lifecycle oidc-client@1.2.2~start: unsafe-perm in lifecycle true\r\n9 verbose lifecycle oidc-client@1.2.2~start: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/home/duncan/dev/vuejs-eval/oidc-client-js/node_modules/.bin:/home/duncan/.cabal/bin:./node_modules/.bin:/home/duncan/.yarn-config/global/bin:~/.npm-packages/bin:/home/duncan/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-7-oracle/bin:/usr/lib/jvm/java-7-oracle/db/bin:/usr/lib/jvm/java-7-oracle/jre/bin:/var/data/phemi/utils\r\n10 verbose lifecycle oidc-client@1.2.2~start: CWD: /home/duncan/dev/vuejs-eval/oidc-client-js\r\n11 silly lifecycle oidc-client@1.2.2~start: Args: [ '-c', 'node sample/server.js' ]\r\n12 silly lifecycle oidc-client@1.2.2~start: Returned: code: 1  signal: null\r\n13 info lifecycle oidc-client@1.2.2~start: Failed to exec start script\r\n14 verbose stack Error: oidc-client@1.2.2 start: `node sample/server.js`\r\n14 verbose stack Exit status 1\r\n14 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)\r\n14 verbose stack     at emitTwo (events.js:106:13)\r\n14 verbose stack     at EventEmitter.emit (events.js:191:7)\r\n14 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)\r\n14 verbose stack     at emitOS:Two (events.js:106:13)\r\n14 verbose stack     at ChildProcess.emit (events.js:191:7)\r\n14 verbose stack     at maybeClose (internal/child_process.js:877:16)\r\n14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)\r\n15 verbose pkgid oidc-client@1.2.2\r\n16 verbose cwd /home/duncan/dev/vuejs-eval/oidc-client-js\r\n17 error Linux 4.4.0-45-generic\r\n18 error argv \"/usr/bin/nodejs\" \"/usr/bin/npm\" \"start\"\r\n19 error node v6.9.2\r\n20 error npm  v3.10.9\r\n21 error code ELIFECYCLE\r\n22 error oidc-client@1.2.2 start: `node sample/server.js`\r\n22 error Exit status 1\r\n23 error Failed at the oidc-client@1.2.2 start script 'node sample/server.js'.\r\n23 error Make sure you have the latest version of node.js and npm installed.\r\n23 error If you do, this is most likely a problem with the oidc-client package,\r\n23 error not with npm itself.\r\n23 error Tell the author that this fails on your system:\r\n23 error     node sample/server.js\r\n23 error You can get information on how to open an issue for this project with:\r\n23 error     npm bugs oidc-client\r\n23 error Or if that isn't available, you can get their info via:\r\n23 error     npm owner ls oidc-client\r\n23 error There is likely additional logging output above.\r\n24 verbose exit [ 1, true ]\r\n```\r\n\r\nSystem details:\r\n\r\n- **OS**: Ubuntu 16.04.1 LTS Xenial\r\n- **node**: version v6.9.2\r\n- **npm**: version 3.10.9\r\n\r\n\r\nI initially tried using yarn instead of npm, with the same result; I then deleted and tried again with npm."},"comment":{"url":"https://api.github.com/repos/IdentityModel/oidc-client-js/issues/comments/269066501","html_url":"https://github.com/IdentityModel/oidc-client-js/issues/236#issuecomment-269066501","issue_url":"https://api.github.com/repos/IdentityModel/oidc-client-js/issues/236","id":269066501,"user":{"login":"dflock","id":47756,"avatar_url":"https://avatars.githubusercontent.com/u/47756?v=3","gravatar_id":"","url":"https://api.github.com/users/dflock","html_url":"https://github.com/dflock","followers_url":"https://api.github.com/users/dflock/followers","following_url":"https://api.github.com/users/dflock/following{/other_user}","gists_url":"https://api.github.com/users/dflock/gists{/gist_id}","starred_url":"https://api.github.com/users/dflock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dflock/subscriptions","organizations_url":"https://api.github.com/users/dflock/orgs","repos_url":"https://api.github.com/users/dflock/repos","events_url":"https://api.github.com/users/dflock/events{/privacy}","received_events_url":"https://api.github.com/users/dflock/received_events","type":"User","site_admin":false},"created_at":"2016-12-24T03:18:12Z","updated_at":"2016-12-24T03:18:12Z","body":"D'oh - sorry :blush: "}}
{"actor":{"display_login":"dflock"}}