{"action":"created","issue":{"url":"https://api.github.com/repos/slashdotdash/node-ledger-web/issues/4","labels_url":"https://api.github.com/repos/slashdotdash/node-ledger-web/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/slashdotdash/node-ledger-web/issues/4/comments","events_url":"https://api.github.com/repos/slashdotdash/node-ledger-web/issues/4/events","html_url":"https://github.com/slashdotdash/node-ledger-web/issues/4","id":72851015,"number":4,"title":"Cannot read property 'prototype' of undefined","user":{"login":"arnuschky","id":179920,"avatar_url":"https://avatars.githubusercontent.com/u/179920?v=3","gravatar_id":"","url":"https://api.github.com/users/arnuschky","html_url":"https://github.com/arnuschky","followers_url":"https://api.github.com/users/arnuschky/followers","following_url":"https://api.github.com/users/arnuschky/following{/other_user}","gists_url":"https://api.github.com/users/arnuschky/gists{/gist_id}","starred_url":"https://api.github.com/users/arnuschky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnuschky/subscriptions","organizations_url":"https://api.github.com/users/arnuschky/orgs","repos_url":"https://api.github.com/users/arnuschky/repos","events_url":"https://api.github.com/users/arnuschky/events{/privacy}","received_events_url":"https://api.github.com/users/arnuschky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-03T19:16:22Z","updated_at":"2015-05-30T18:35:36Z","closed_at":null,"body":"Hitting the following error on first install:\r\n\r\n```\r\n$ NODE_ENV=production node app.js\r\n\r\nutil.js:556\r\n  ctor.prototype = Object.create(superCtor.prototype, {\r\n                                          ^\r\nTypeError: Cannot read property 'prototype' of undefined\r\n    at Object.exports.inherits (util.js:556:43)\r\n    at Object.<anonymous> (/home/user/node-ledger-web.git/node_modules/http-proxy/lib/http-proxy/index.js:111:17)\r\n    at Module._compile (module.js:456:26)\r\n    at Object.Module._extensions..js (module.js:474:10)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:312:12)\r\n    at Module.require (module.js:364:17)\r\n    at require (module.js:380:17)\r\n    at Object.<anonymous> (/home/user/node-ledger-web.git/node_modules/http-proxy/lib/http-proxy.js:4:17)\r\n    at Module._compile (module.js:456:26)\r\n```\r\n\r\nPackages:\r\n```\r\n├─┬ ejs-locals@1.0.2\r\n│ └── ejs@0.8.8\r\n├─┬ express@3.4.8\r\n│ ├── buffer-crc32@0.2.1\r\n│ ├─┬ commander@1.3.2\r\n│ │ └── keypress@0.1.0\r\n│ ├─┬ connect@2.12.0\r\n│ │ ├── batch@0.5.0\r\n│ │ ├── bytes@0.2.1\r\n│ │ ├─┬ multiparty@2.2.0\r\n│ │ │ ├─┬ readable-stream@1.1.13\r\n│ │ │ │ ├── core-util-is@1.0.1\r\n│ │ │ │ ├── inherits@2.0.1\r\n│ │ │ │ ├── isarray@0.0.1\r\n│ │ │ │ └── string_decoder@0.10.31\r\n│ │ │ └── stream-counter@0.2.0\r\n│ │ ├── negotiator@0.3.0\r\n│ │ ├── pause@0.0.1\r\n│ │ ├── qs@0.6.6\r\n│ │ ├── raw-body@1.1.2\r\n│ │ └── uid2@0.0.3\r\n│ ├── cookie@0.1.0\r\n│ ├── cookie-signature@1.0.1\r\n│ ├── debug@0.8.1\r\n│ ├── fresh@0.2.0\r\n│ ├── merge-descriptors@0.0.1\r\n│ ├── methods@0.1.0\r\n│ ├── mkdirp@0.3.5\r\n│ ├── range-parser@0.0.4\r\n│ └─┬ send@0.1.4\r\n│   └── mime@1.2.11\r\n├─┬ grunt@0.4.5\r\n│ ├── async@0.1.22\r\n│ ├── coffee-script@1.3.3\r\n│ ├── colors@0.6.2\r\n│ ├── dateformat@1.0.2-1.2.3\r\n│ ├── eventemitter2@0.4.14\r\n│ ├── exit@0.1.2\r\n│ ├─┬ findup-sync@0.1.3\r\n│ │ ├─┬ glob@3.2.11\r\n│ │ │ ├── inherits@2.0.1\r\n│ │ │ └─┬ minimatch@0.3.0\r\n│ │ │   ├── lru-cache@2.6.2\r\n│ │ │   └── sigmund@1.0.0\r\n│ │ └── lodash@2.4.2\r\n│ ├── getobject@0.1.0\r\n│ ├─┬ glob@3.1.21\r\n│ │ ├── graceful-fs@1.2.3\r\n│ │ └── inherits@1.0.0\r\n│ ├─┬ grunt-legacy-log@0.1.1\r\n│ │ ├── lodash@2.4.2\r\n│ │ └── underscore.string@2.3.3\r\n│ ├── grunt-legacy-util@0.2.0\r\n│ ├── hooker@0.2.3\r\n│ ├── iconv-lite@0.2.11\r\n│ ├─┬ js-yaml@2.0.5\r\n│ │ ├─┬ argparse@0.1.16\r\n│ │ │ ├── underscore@1.7.0\r\n│ │ │ └── underscore.string@2.4.0\r\n│ │ └── esprima@1.0.4\r\n│ ├── lodash@0.9.2\r\n│ ├─┬ minimatch@0.2.14\r\n│ │ ├── lru-cache@2.6.2\r\n│ │ └── sigmund@1.0.0\r\n│ ├─┬ nopt@1.0.10\r\n│ │ └── abbrev@1.0.5\r\n│ ├── rimraf@2.2.8\r\n│ ├── underscore.string@2.2.1\r\n│ └── which@1.0.9\r\n├── grunt-contrib-copy@0.5.0\r\n├─┬ grunt-contrib-jshint@0.8.0\r\n│ └─┬ jshint@2.4.4\r\n│   ├─┬ cli@0.4.5\r\n│   │ └─┬ glob@5.0.5\r\n│   │   ├─┬ inflight@1.0.4\r\n│   │   │ └── wrappy@1.0.1\r\n│   │   ├── inherits@2.0.1\r\n│   │   ├─┬ minimatch@2.0.7\r\n│   │   │ └─┬ brace-expansion@1.1.0\r\n│   │   │   ├── balanced-match@0.2.0\r\n│   │   │   └── concat-map@0.0.1\r\n│   │   ├─┬ once@1.3.1\r\n│   │   │ └── wrappy@1.0.1\r\n│   │   └── path-is-absolute@1.0.0\r\n│   ├── console-browserify@0.1.6\r\n│   ├── exit@0.1.2\r\n│   ├─┬ htmlparser2@3.3.0\r\n│   │ ├── domelementtype@1.3.0\r\n│   │ ├── domhandler@2.1.0\r\n│   │ ├── domutils@1.1.6\r\n│   │ └─┬ readable-stream@1.0.33\r\n│   │   ├── core-util-is@1.0.1\r\n│   │   ├── inherits@2.0.1\r\n│   │   ├── isarray@0.0.1\r\n│   │   └── string_decoder@0.10.31\r\n│   ├─┬ minimatch@0.4.0\r\n│   │ ├── lru-cache@2.6.2\r\n│   │ └── sigmund@1.0.0\r\n│   ├── shelljs@0.1.4\r\n│   └── underscore@1.4.4\r\n├─┬ grunt-contrib-requirejs@0.4.4\r\n│ └── requirejs@2.1.17\r\n├─┬ grunt-contrib-watch@0.5.3\r\n│ ├─┬ gaze@0.4.3\r\n│ │ └─┬ globule@0.1.0\r\n│ │   ├─┬ glob@3.1.21\r\n│ │   │ ├── graceful-fs@1.2.3\r\n│ │   │ └── inherits@1.0.0\r\n│ │   ├── lodash@1.0.2\r\n│ │   └─┬ minimatch@0.2.14\r\n│ │     ├── lru-cache@2.6.2\r\n│ │     └── sigmund@1.0.0\r\n│ └─┬ tiny-lr@0.0.4\r\n│   ├── debug@0.7.4\r\n│   ├── faye-websocket@0.4.4\r\n│   ├─┬ noptify@0.0.3\r\n│   │ └─┬ nopt@2.0.0\r\n│   │   └── abbrev@1.0.5\r\n│   └── qs@0.5.6\r\n├─┬ grunt-react@0.6.0\r\n│ ├─┬ react-tools@0.5.2\r\n│ │ ├─┬ commoner@0.8.15\r\n│ │ │ ├─┬ commander@2.8.1\r\n│ │ │ │ └── graceful-readlink@1.0.1\r\n│ │ │ ├─┬ glob@5.0.5\r\n│ │ │ │ ├─┬ inflight@1.0.4\r\n│ │ │ │ │ └── wrappy@1.0.1\r\n│ │ │ │ ├── inherits@2.0.1\r\n│ │ │ │ ├─┬ minimatch@2.0.7\r\n│ │ │ │ │ └─┬ brace-expansion@1.1.0\r\n│ │ │ │ │   ├── balanced-match@0.2.0\r\n│ │ │ │ │   └── concat-map@0.0.1\r\n│ │ │ │ ├─┬ once@1.3.1\r\n│ │ │ │ │ └── wrappy@1.0.1\r\n│ │ │ │ └── path-is-absolute@1.0.0\r\n│ │ │ ├── graceful-fs@2.0.3\r\n│ │ │ ├── install@0.1.8\r\n│ │ │ ├─┬ mkdirp@0.5.0\r\n│ │ │ │ └── minimist@0.0.8\r\n│ │ │ ├── private@0.1.6\r\n│ │ │ ├── q@1.3.0\r\n│ │ │ ├─┬ recast@0.5.27\r\n│ │ │ │ ├── ast-types@0.3.38\r\n│ │ │ │ ├── cls@0.1.5\r\n│ │ │ │ ├── esprima@1.1.0-dev-harmony (git+https://github.com/ariya/esprima.git#a41a40b49046747b3af57341cda048bbd3d9df79)\r\n│ │ │ │ └─┬ source-map@0.1.32\r\n│ │ │ │   └── amdefine@0.1.0\r\n│ │ │ └─┬ whiskey@0.6.13\r\n│ │ │   ├── async@0.9.0\r\n│ │ │   ├── gex@0.0.1\r\n│ │ │   ├── logmagic@0.1.4\r\n│ │ │   ├── magic-templates@0.1.1\r\n│ │ │   ├── rimraf@1.0.1\r\n│ │ │   ├── simplesets@1.1.6\r\n│ │ │   ├── sprintf@0.1.5\r\n│ │ │   ├── terminal@0.1.3\r\n│ │ │   └── underscore@1.8.3\r\n│ │ ├── esprima-fb@1001.1001.2000-dev-harmony-fb\r\n│ │ └─┬ jstransform@1.0.1\r\n│ │   ├── base62@0.1.1\r\n│ │   └─┬ source-map@0.1.8\r\n│ │     └── amdefine@0.1.0\r\n│ └── through@2.3.7\r\n├─┬ grunt-recess@0.5.1\r\n│ ├── async@0.2.10\r\n│ ├─┬ chalk@0.4.0\r\n│ │ ├── ansi-styles@1.0.0\r\n│ │ ├── has-color@0.1.7\r\n│ │ └── strip-ansi@0.1.1\r\n│ ├─┬ grunt-lib-contrib@0.6.1\r\n│ │ └── zlib-browserify@0.0.1\r\n│ └─┬ recess@1.1.9\r\n│   ├── colors@1.1.0\r\n│   ├─┬ less@1.3.3\r\n│   │ └── ycssmin@1.0.1\r\n│   ├─┬ nopt@3.0.1\r\n│   │ └── abbrev@1.0.5\r\n│   ├── underscore@1.8.3\r\n│   └─┬ watch@0.16.0\r\n│     ├─┬ exec-sh@0.2.0\r\n│     │ └── merge@1.2.0\r\n│     └── minimist@1.1.1\r\n├─┬ http-proxy@1.0.3\r\n│ └── eventemitter3@1.0.1\r\n├─┬ ledger-rest@0.1.0\r\n│ ├─┬ JSONStream@0.8.4\r\n│ │ ├── jsonparse@0.0.5\r\n│ │ └── through@2.3.7\r\n│ ├─┬ ledger-cli@0.1.1\r\n│ │ └─┬ csv-streamify@0.9.1\r\n│ │   └─┬ readable-stream@1.1.13\r\n│ │     ├── core-util-is@1.0.1\r\n│ │     ├── inherits@2.0.1\r\n│ │     ├── isarray@0.0.1\r\n│ │     └── string_decoder@0.10.31\r\n│ └─┬ restify@2.6.3\r\n│   ├── assert-plus@0.1.5\r\n│   ├── backoff@2.3.0\r\n│   ├─┬ bunyan@0.22.1\r\n│   │ └── mv@0.0.5\r\n│   ├── csv@0.3.7\r\n│   ├── deep-equal@0.0.0\r\n│   ├── dtrace-provider@0.2.8\r\n│   ├── escape-regexp-component@1.0.2\r\n│   ├── formidable@1.0.14\r\n│   ├─┬ http-signature@0.10.0\r\n│   │ ├── asn1@0.1.11\r\n│   │ ├── assert-plus@0.1.2\r\n│   │ └── ctype@0.5.2\r\n│   ├── keep-alive-agent@0.0.1\r\n│   ├── lru-cache@2.3.1\r\n│   ├── mime@1.2.11\r\n│   ├── negotiator@0.3.0\r\n│   ├── node-uuid@1.4.1\r\n│   ├── once@1.3.0\r\n│   ├── qs@0.6.6\r\n│   ├── semver@2.2.1\r\n│   ├── spdy@1.19.3\r\n│   ├── tunnel-agent@0.4.0\r\n│   └─┬ verror@1.3.7\r\n│     └── extsprintf@1.0.2\r\n└── lodash@2.4.2\r\n```"},"comment":{"url":"https://api.github.com/repos/slashdotdash/node-ledger-web/issues/comments/107074484","html_url":"https://github.com/slashdotdash/node-ledger-web/issues/4#issuecomment-107074484","issue_url":"https://api.github.com/repos/slashdotdash/node-ledger-web/issues/4","id":107074484,"user":{"login":"briviere","id":225768,"avatar_url":"https://avatars.githubusercontent.com/u/225768?v=3","gravatar_id":"","url":"https://api.github.com/users/briviere","html_url":"https://github.com/briviere","followers_url":"https://api.github.com/users/briviere/followers","following_url":"https://api.github.com/users/briviere/following{/other_user}","gists_url":"https://api.github.com/users/briviere/gists{/gist_id}","starred_url":"https://api.github.com/users/briviere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/briviere/subscriptions","organizations_url":"https://api.github.com/users/briviere/orgs","repos_url":"https://api.github.com/users/briviere/repos","events_url":"https://api.github.com/users/briviere/events{/privacy}","received_events_url":"https://api.github.com/users/briviere/received_events","type":"User","site_admin":false},"created_at":"2015-05-30T18:35:36Z","updated_at":"2015-05-30T18:35:36Z","body":"I have it working by adding eventemitter3 and using the latest http-proxy.\r\n\r\n{\r\n  \"name\": \"ledger-web\",\r\n  \"version\": \"0.0.1\",\r\n  \"description\": \"Web front-end to access ledger cli data.\",\r\n  \"repository\": {\r\n    \"type\": \"git\",\r\n    \"url\": \"git://github.com/slashdotdash/node-ledger-web.git\"\r\n  },\r\n  \"keywords\": [\r\n    \"ledger\",\r\n    \"accounting\",\r\n    \"finance\"\r\n  ],\r\n  \"author\": {\r\n    \"name\": \"Ben Smith\",\r\n    \"email\": \"ben@10consulting.com\"\r\n  },\r\n  \"license\": \"MIT\",\r\n  \"main\": \"app.js\",\r\n  \"directories\": {},\r\n  \"scripts\": {\r\n    \"start\": \"node app\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"grunt\": \"~0.4.2\",\r\n    \"grunt-contrib-copy\": \"~0.5.0\",\r\n    \"grunt-contrib-jshint\": \"~0.8.0\",\r\n    \"grunt-contrib-requirejs\": \"~0.4.1\",\r\n    \"grunt-contrib-watch\": \"~0.5.3\",\r\n    \"grunt-react\": \"~0.6.0\",\r\n    \"eventemitter3\": \"^0.1.6\",\r\n    \"grunt-recess\": \"~0.5.0\"\r\n  },\r\n  \"dependencies\": {\r\n    \"express\": \"~3.4.8\",\r\n    \"ejs-locals\": \"^1.0.2\",\r\n    \"http-proxy\": \"^1.11.1\",\r\n    \"ledger-rest\": \"^0.1.0\",\r\n    \"lodash\": \"~2.4.1\"\r\n  }\r\n}"}}