slashdotdash / node-ledger-web

Web front-end to access ledger cli data.
MIT License
144 stars 14 forks source link

throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'superCtor', 'Function'); #14

Closed zul00 closed 6 years ago

zul00 commented 6 years ago

Hi, I tried to run it on a linux machine. node --version v9.3.0 npm --version v5.6.0 bower --version v1.8.2 grunt-cli --version v.1.2.0

I already installed all the requrement and I run "node app.js". However I got the following error

util.js:944 throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'superCtor', 'Function'); ^

TypeError [ERR_INVALID_ARG_TYPE]: The "superCtor" argument must be of type Function at Object.inherits (util.js:944:11) at Object. (/home/zul/Dropbox/Project/node-ledger-web/node_modules/spdy/lib/spdy/connection.js:81:6) at Module._compile (module.js:660:30) at Object.Module._extensions..js (module.js:671:10) at Module.load (module.js:573:32) at tryModuleLoad (module.js:513:12) at Function.Module._load (module.js:505:3) at Module.require (module.js:604:17) at require (internal/module.js:11:18) at Object. (/home/zul/Dropbox/Project/node-ledger-web/node_modules/spdy/lib/spdy.js:20:19)

Any idea about the error?

Best Regards, Zul

slashdotdash commented 6 years ago

@zul00 Workaround for you is to use nvm to install and use an earlier version of Node that is known to work:

nvm install v4.1.0
nvm use v4.1.0

Happy to accept a pull request if you are able to get it working with latest Node.js. Closing this issue as it is a duplicate of #10.

MartyLake commented 5 years ago

Got this error today. maybe this should be put into the README ?