tsc error while installing
Hi everyone
I'm trying to install duniter and I get an error during installation. I'm following this tutorial https://git.duniter.org/nodes/typescript/duniter/blob/1.6/doc/contribute-french.md , adapting it from github to gitlab, so here is what I have done after forking the current project and cloning my copy locally:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.1/install.sh | bash
nvm install 6
sudo apt-get install build-essential
cd duniter
npm install
This last command ends in this error:
> duniter@1.6.17 prepublish /home/quentin/prog/duniter/typescript/duniter
> tsc
app/lib/dal/sqliteDAL/MetaDAL.ts(420,15): error TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'never' has no compatible call signatures.
app/modules/crawler/lib/sync.ts(767,9): error TS2365: Operator '===' cannot be applied to types '10' and '0'.
npm WARN bl@0.7.0 requires a peer of stream-browserify@* but none was installed.
npm ERR! Linux 4.4.0-112-generic
npm ERR! argv "/home/quentin/.nvm/versions/node/v6.12.3/bin/node" "/home/quentin/.nvm/versions/node/v6.12.3/bin/npm" "install"
npm ERR! node v6.12.3
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! duniter@1.6.17 prepublish: `tsc`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the duniter@1.6.17 prepublish script 'tsc'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the duniter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! tsc
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs duniter
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls duniter
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/quentin/prog/duniter/typescript/duniter/npm-debug.log
Any idea? I'm using Ubuntu 16.04 LTS